View Extensive Data Coverage

The Future of Market Data

With 24/7 access to the universe of U.S. financial market data, the Market Data API offers an unmatched, one-stop solution for traders and developers alike.

Try Market Data's Free Stock Market API For Real-Time Quotes and More

Unparalleled Ease-of-Use

Get Started Faster with Our Developer-Friendly Features

Building with the Market Data API is not just about comprehensive data coverage; it's also about unparalleled ease-of-use. Whether you're a beginner or an experienced developer, you'll appreciate how our API has been designed to get you up and running as quickly as possible. Here are some of the features that make it happen:

Parameter dateformat

Unix, ISO timestamp & spreadsheet date formats

Choose the date format that best fits your project requirements, giving you the flexibility to integrate seamlessly with different platforms. Our API handles all date conversions, daylight savings time shifts, and frees you to focus on more important issues.

  • Seconds from the unix epoch
  • ISO 8601 timestamp with exchange timezone
  • Days from Microsoft Excel / Google Sheets epoch
{
  "s": "ok",
  "o": [316.85, 319.6, 316.7],
  "h": [322.37, 321.24, 327.3],
  "l": [315.45, 312.8, 314.73],
  "c": [319.7, 316.85, 325.575],
  // Unix timestamps
  "t": [1787889600, 1788148800, 1788235200],
  "v": [38649398, 41242724, 28443573]
}

{
  "s": "ok",
  "o": [316.85, 319.6, 316.7],
  "h": [322.37, 321.24, 327.3],
  "l": [315.45, 312.8, 314.73],
  "c": [319.7, 316.85, 325.575],
  // ISO 8601 with exchange timezone
  "t": [
    "2026-08-28T00:00:00-04:00", "2026-08-31T00:00:00-04:00",
    "2026-09-01T00:00:00-04:00"
  ],
  "v": [38649398, 41242724, 28443573]
}

{
  "s": "ok",
  "o": [316.85, 319.6, 316.7],
  "h": [322.37, 321.24, 327.3],
  "l": [315.45, 312.8, 314.73],
  "c": [319.7, 316.85, 325.575],
  // Excel / Google Sheets serial
  "t": [46262.16666666667, 46265.16666666667, 46266.16666666667],
  "v": [38649398, 41242724, 28443573]
}

Agent setup

Set up the API from the coding agent you already use

One prompt points the agent at our llms.txt. It starts with the official SDK for your language, reads your token from the MARKETDATA_TOKEN variable and finishes with a real quote.

The prompt works in

  • Claude Code
  • Codex
  • Cursor
  • GitHub Copilot
  • Gemini CLI
  • Claude Desktop
  • ChatGPT
See the setup steps for your agent

Paste into your coding agent

Read https://www.marketdata.app/llms.txt and set up Market Data. Decide if I want data in a spreadsheet or in code; if unclear, ask one question. Spreadsheet: set up the Google Sheets add-on and its formulas (STOCKDATA, OPTIONDATA, OPTIONCHAIN, EARNINGS) and link its docs. Code: start with the official Market Data SDK for my language (Python, JavaScript, Java, C#, Go, PHP; https://www.marketdata.app/docs/sdk/); never write your own HTTP client while an SDK exists. If I have no account, tell me to sign up for the free trial at https://www.marketdata.app/signup/ and set MARKETDATA_TOKEN myself; you cannot do that step. Read the token from MARKETDATA_TOKEN, never paste it in chat or source, then make one real call (an SDK stock quote or one formula in a cell) to confirm it works.

Prefer to do it yourself? Start the free trial or read the API docs.

  • In a spreadsheet

    You install the free Google Sheets add-on, which signs in with your Google account. The agent then writes the formula for the cell: STOCKDATA for quotes and candles, OPTIONDATA and OPTIONCHAIN for options, EARNINGS for the reporting calendar. One formula in a cell is the first call.

  • In code

    The agent starts with the official SDK for your language: Python, JavaScript, Java, C#, Go and PHP. Every SDK reads MARKETDATA_TOKEN and handles the request and the response for you, so the agent writes no HTTP client of its own. The REST reference is there for a language without an SDK.

  • What the agent gets right

    Our llms.txt tells it what breaks a first integration: the token travels as a Bearer header, a 203 response is a success from the cache, a 402 means the plan does not cover the request, and a 403 clears itself after five minutes. It also knows that signing up and requesting your token are your steps, not its own.

Winning trades are born from superior data.

Free 30 day demo for new accounts. No credit card required.

Sign Up For Free