stock_history_trade_quote
Combined trade + quote ticks for a stock on a given date. Each row contains the full trade data plus the prevailing NBBO quote at the time of the trade.
FreeValueStandardPro
Code Example
rust
let ticks: Vec<TradeQuoteTick> = tdx.stock_history_trade_quote("AAPL", "20240315").await?;python
result = tdx.stock_history_trade_quote("AAPL", "20240315")go
result, err := client.StockHistoryTradeQuote("AAPL", "20240315")
if err != nil {
log.Fatal(err)
}cpp
auto tq = client.stock_history_trade_quote("AAPL", "20240315");Parameters
symbolstringrequiredTicker symbol
datestringrequiredDate in
YYYYMMDD formatstart_timestringoptionalStart time as milliseconds from midnight ET
end_timestringoptionalEnd time as milliseconds from midnight ET
exclusivebooloptionalUse exclusive time bounds
venuestringoptionalData venue filter
Response Fields (TradeQuoteTick)
Combined trade + quote tick (25 fields). Contains the full trade data plus the prevailing NBBO quote at the time of the trade.
Helper methods: trade_price(), bid_price(), ask_price()
Notes
- This endpoint merges trade and quote streams so each trade row includes the best bid/ask at the time of execution. Useful for computing effective spread, price improvement, and trade classification.
- Returns
Vec<TradeQuoteTick>in Rust, list of dicts in Python,[]TradeQuoteTickin Go,vector<TradeQuoteTick>in C++. - This is a Pro-tier endpoint. Value and Standard subscriptions do not have access.
- The response can be very large for active symbols. Consider filtering with
start_time/end_timeor using date ranges that cover only the session you need.