Skip to content

Stock Endpoints

ThetaDataDx provides 14 endpoints for US equity data: listing available symbols and dates, real-time snapshots, historical OHLC/trade/quote data, and point-in-time lookups.

List

Discover what data is available before requesting it.

EndpointDescription
List SymbolsAll available stock ticker symbols
List DatesAvailable dates for a stock by request type

Snapshots

Latest market state for one or more symbols in a single call.

EndpointDescription
Snapshot OHLCCurrent-day OHLC bar
Snapshot TradeMost recent trade
Snapshot QuoteCurrent NBBO quote
Snapshot Market ValueLatest market value

TIP

Snapshot endpoints accept multiple symbols in a single call. Batch your requests to reduce round-trips.

History

Historical bars and tick-level data.

EndpointDescription
History EODEnd-of-day OHLC + closing quote across a date range
History OHLCIntraday OHLC bars (single date or date range)
History TradeAll trades for a date
History QuoteNBBO quotes at a configurable interval
History Trade+QuoteCombined trade and prevailing quote ticks

At-Time

Point-in-time lookups across a date range.

EndpointDescription
At-Time TradeTrade at a specific time of day across dates
At-Time QuoteQuote at a specific time of day across dates

Streaming (Rust)

For endpoints returning millions of rows, the Rust SDK provides _stream variants that process data chunk by chunk without holding everything in memory:

rust
tdx.stock_history_trade_stream("AAPL", "20240315", |chunk| {
    println!("Got {} trades in this chunk", chunk.len());
    Ok(())
}).await?;

tdx.stock_history_quote_stream("AAPL", "20240315", "0", |chunk| {
    println!("Got {} quotes in this chunk", chunk.len());
    Ok(())
}).await?;

TIP

Use streaming variants when fetching tick-level data for active symbols. A single day of AAPL trades can exceed 100,000 rows.

Released under the Apache-2.0 License.