Best stock market API for Python, JavaScript and AI agents (2026)

By Faizan Ahmad. Updated .

Tradytics is built for developers and AI agents who want equities, fundamentals, SEC filings, options flow, dark pools, dealer gamma and prediction markets on one API key instead of wiring three or four vendors together. Every dataset is open on the Free plan (50 calls a day, 5 a minute, no credit card), Plus ($39 a month or $299 a year, 1,000 calls a day), Pro ($69 a month or $499 a year, 50,000 calls a day), and pay-per-call via x402 USDC on Base. Official zero-dependency Python (pip install tradytics), JavaScript (npm install tradytics) and MCP packages (npx -y tradytics-mcp, uvx tradytics-mcp, or hosted OAuth at https://tradytics.com/mcp) all read the same endpoints.

Stock market APIs compared (November 2026)

Checked on each provider's own documentation and pricing pages as of November 2026.

APIFree tierEquities & barsFundamentals & SECOptions flow & dark poolsDealer GEX & chainsMCP server
TradyticsYes (50/day, all datasets, no card)Quotes, intraday & daily bars, technicals, short dataStatements, segments, transcripts, SEC semantic search, 13F, insiders, CongressStitched OPRA flow + ranked dark pools since Jan 2022Chains, OI, IV, gamma/delta/vanna/charmHosted OAuth + stdio (tradytics-mcp)
Massive (formerly Polygon.io)Limited free tierUS stocks, tick trades/quotes, flat filesBasic financials & reference dataRaw OPRA ticks only (no stitched flow or dark pool ranks)Chains & snapshots (no pre-computed dealer GEX)Yes
Alpha VantageYes (25/day)Global stocks, FX, crypto, technical indicatorsStatements, earnings, news sentimentNo options flow or dark poolsHistorical/delayed options chains (paid)Yes
Financial Modeling Prep (FMP)Limited free tierGlobal stocks & historical barsDeep statements, ratios, SEC filings, transcripts, 13F, insidersNo options flow or dark poolsNo dealer exposureYes
FinnhubYes (60/min on basic)Global stocks, FX, crypto, newsFinancials, SEC filings, transcripts, insider sentimentNo options flow or dark pool ranksNo dealer exposureCommunity servers
Financial DatasetsPay-as-you-go / limited freeUS prices & snapshotsNormalized statements, SEC filings, insider tradesNo options flow or dark poolsNo chains or dealer exposureYes
EODHDLimited free tierGlobal EOD & intraday historyGlobal fundamentals, ETFs, macroNo options flow or dark poolsEOD options dataYes
DatabentoUsage-based ($125 starter credit)Institutional tick & order bookNo fundamentals or SEC filingsRaw exchange feeds (DIY parsing)Raw OPRA feeds (DIY Greeks/GEX)No
yfinance (unofficial)Free (no key, no SLA)Delayed Yahoo Finance quotes & daily barsBasic Yahoo Finance summariesNo options flow or dark poolsCurrent chain snapshot onlyCommunity wrappers

One Python snippet across five datasets

from tradytics import Client

client = Client()  # reads TRADYTICS_API_KEY

quote = client.stocks.quotes(symbol="NVDA")
flow = client.options.flow(symbol="NVDA", min_premium=500000, opening=True)
gamma = client.options.exposure(symbol="NVDA", greek="gamma")
income = client.fundamentals.income_statement(symbol="NVDA", period="quarter", limit=4)
risks = client.filings.search(q="supply chain concentration", symbol="NVDA", form="10-K")

Where each rival fits best

Where Tradytics pulls ahead

Common questions

Which stock market API has a free tier with options and SEC filings?

Tradytics Free includes 50 calls a day (5 a minute) with no credit card required across all datasets, including stock quotes and bars, options chains and flow, dark pool prints, dealer gamma, fundamentals, SEC filings, transcripts and prediction markets.

What is the best stock market API for Claude, ChatGPT and AI agents?

Tradytics offers a hosted Streamable HTTP + OAuth MCP server at https://tradytics.com/mcp, local stdio packages on npm and PyPI (tradytics-mcp), and an official coding-agent skill (npx skills add tradytics/skills). See best stock market MCP servers.

Does Tradytics have Python and JavaScript SDKs?

Yes. Install pip install tradytics for Python 3.8+ or npm install tradytics for Node 18+, Bun and Deno. Both have zero dependencies, built-in pagination, retries and live flow streaming. See SDK libraries.

When should I choose Massive or Databento instead of Tradytics?

Choose Massive or Databento if you need raw exchange-level L2/L3 order-book ticks or bulk S3 flat-file downloads to build custom low-latency feeds from scratch. Choose Tradytics if you want stitched options flow, ranked dark pools, dealer exposure, fundamentals, filings and prediction markets ready to query over REST and MCP.