Quick answer
ThetaData sells US options and stock market data, including full OPRA tick history, quotes, OHLC, open interest and greeks. You run the Theta Terminal (a Java app) logged in with your account, and query it over a local HTTP API (by default on port 25510) or with the Python library. A free tier gives end-of-day data.
ThetaData API at a glance
- Pricing
- Free EOD tier; monthly plans for history and real time
- Availability
- Worldwide
- Paper trading
- Not applicable (data only)
- Integration type
- Local gateway
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Access
- Local Theta Terminal + HTTP API
- Data
- Options ticks, quotes, OHLC, OI, greeks; stocks; indices
- Free tier
- End-of-day
Build a ThetaData strategy with AlgoGP
AlgoGP does not connect to ThetaData natively yet. ThetaData connects through a local gateway, socket, FIX or Protobuf stack rather than plain HTTPS, so it runs as a separate process next to your strategy.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in ThetaData
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with ThetaData’s SDK, or keep a built-in platform for paper trading and add ThetaData when you go live.
Built-in data sources for the same markets: Alpaca, Yahoo Finance, Alpha Vantage, OANDA.
ThetaData API: frequently asked questions
Why does ThetaData need a terminal?
The terminal streams compressed data from ThetaData’s servers and serves it locally, which keeps large requests fast.
Design and backtest your ThetaData strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to ThetaData. The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to ThetaData
Free plan, no card required.
ThetaData alternatives
- ORATS API GuideOptions analytics data: smoothed implied volatility surfaces, greeks, earnings effects and historical strikes back to 2007.
- Massive (Polygon.io) API Built into AlgoGP (data)Institutional-grade US stock, options, forex and crypto aggregates; Polygon.io renamed to Massive in 2025.
- Databento API GuideInstitutional-quality tick, depth (L2/L3) and OHLCV data for US equities, futures and options, billed by usage.
- Tradier API Built into AlgoGPDeveloper-focused US brokerage for stocks and options, with a REST API and a free sandbox token.
Frameworks that connect to ThetaData
Independent guide. AlgoGP is not affiliated with ThetaData. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.