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.
| API | Free tier | Equities & bars | Fundamentals & SEC | Options flow & dark pools | Dealer GEX & chains | MCP server |
|---|---|---|---|---|---|---|
| Tradytics | Yes (50/day, all datasets, no card) | Quotes, intraday & daily bars, technicals, short data | Statements, segments, transcripts, SEC semantic search, 13F, insiders, Congress | Stitched OPRA flow + ranked dark pools since Jan 2022 | Chains, OI, IV, gamma/delta/vanna/charm | Hosted OAuth + stdio (tradytics-mcp) |
| Massive (formerly Polygon.io) | Limited free tier | US stocks, tick trades/quotes, flat files | Basic financials & reference data | Raw OPRA ticks only (no stitched flow or dark pool ranks) | Chains & snapshots (no pre-computed dealer GEX) | Yes |
| Alpha Vantage | Yes (25/day) | Global stocks, FX, crypto, technical indicators | Statements, earnings, news sentiment | No options flow or dark pools | Historical/delayed options chains (paid) | Yes |
| Financial Modeling Prep (FMP) | Limited free tier | Global stocks & historical bars | Deep statements, ratios, SEC filings, transcripts, 13F, insiders | No options flow or dark pools | No dealer exposure | Yes |
| Finnhub | Yes (60/min on basic) | Global stocks, FX, crypto, news | Financials, SEC filings, transcripts, insider sentiment | No options flow or dark pool ranks | No dealer exposure | Community servers |
| Financial Datasets | Pay-as-you-go / limited free | US prices & snapshots | Normalized statements, SEC filings, insider trades | No options flow or dark pools | No chains or dealer exposure | Yes |
| EODHD | Limited free tier | Global EOD & intraday history | Global fundamentals, ETFs, macro | No options flow or dark pools | EOD options data | Yes |
| Databento | Usage-based ($125 starter credit) | Institutional tick & order book | No fundamentals or SEC filings | Raw exchange feeds (DIY parsing) | Raw OPRA feeds (DIY Greeks/GEX) | No |
| yfinance (unofficial) | Free (no key, no SLA) | Delayed Yahoo Finance quotes & daily bars | Basic Yahoo Finance summaries | No options flow or dark pools | Current chain snapshot only | Community 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
- Massive (Polygon.io) and Databento: strong infrastructure choices when you need raw tick-level WebSocket streams, L2/L3 order books, or bulk S3 flat files to run your own microstructure pipelines.
- Financial Modeling Prep and EODHD: strong choices when you need multi-decade international equity fundamentals across non-US exchanges.
- Alpha Vantage and Twelve Data: straightforward starting points for forex, global equities and classic technical indicators.
- Financial Datasets: clean, agent-focused US statements and filings when you do not need options flow, chains, dark pools or dealer positioning.
- yfinance: fast zero-signup prototyping in notebooks when reliability, rate limits and uptime guarantees do not matter.
Where Tradytics pulls ahead
- One key replaces three vendors: instead of combining Polygon for prices, FMP for fundamentals and Unusual Whales for options flow, Tradytics serves quotes, bars, fundamentals, SEC semantic search, transcripts, 13F/insiders/Congress, stitched OPRA options flow, ranked dark pools, dealer gamma/vanna/charm, stock perpetuals and Kalshi/Polymarket probabilities in one schema.
- Pre-computed microstructure: sweeps, blocks and splits are stitched into orders with inferred side against NBBO; dark pool blocks are ranked against each stock's rolling 12 months; dealer exposure covers gamma, delta, vanna and charm.
- Agent-native access: connect Claude, ChatGPT or Cursor with OAuth at
https://tradytics.com/mcp, runnpx -y tradytics-mcporuvx tradytics-mcpfor stdio workflows, installnpx skills add tradytics/skills, or pay per call with x402 USDC on Base.
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.