stock_snapshot_quote
Latest NBBO (National Best Bid and Offer) quote snapshot for one or more stocks.
FreeValueStandardPro
Code Example
rust
let data = tdx.stock_snapshot_quote(&["SPY", "MSFT", "GOOGL"]).await?;
for t in &data {
println!("date={} ms_of_day={} bid={:.2} bid_size={} ask={:.2} ask_size={} midpoint={:.2}",
t.date, t.ms_of_day, t.bid, t.bid_size, t.ask, t.ask_size, t.midpoint);
}python
data = tdx.stock_snapshot_quote(["SPY", "MSFT", "GOOGL"])
for t in data:
print(f"date={t.date} ms_of_day={t.ms_of_day} bid={t.bid:.2f} "
f"bid_size={t.bid_size} ask={t.ask:.2f} ask_size={t.ask_size} midpoint={t.midpoint:.2f}")typescript
const data = tdx.stockSnapshotQuote(['SPY', 'MSFT', 'GOOGL']);
for (const t of data) {
console.log(`date=${t.date} ms_of_day=${t.ms_of_day} bid=${t.bid} bid_size=${t.bid_size} ask=${t.ask} ask_size=${t.ask_size}`);
}cpp
auto data = client.stock_snapshot_quote({"SPY", "MSFT", "GOOGL"});
for (const auto& t : data) {
printf("date=%d ms_of_day=%d bid=%.2f bid_size=%d ask=%.2f ask_size=%d midpoint=%.2f\n",
t.date, t.ms_of_day, t.bid, t.bid_size, t.ask, t.ask_size, t.midpoint);
}Parameters
symbolsstring[]requiredOne or more ticker symbols
venuestringoptionalData venue filter
min_timestringoptionalMinimum time of day as milliseconds from midnight ET
Response Fields (QuoteTick)
ms_of_dayi32Milliseconds since midnight ET
bid_size / ask_sizei32Quote sizes
bid_exchange / ask_exchangei32Exchange codes
bid / askf64Bid/ask prices (decoded at parse time).
midpoint is pre-computed.bid_condition / ask_conditioni32Condition codes
datei32Date as
YYYYMMDD integerSample Response
json
[
{"date": 20260402, "ms_of_day": 72000220, "bid": 250.30, "bid_size": 51, "ask": 255.38, "ask_size": 201, "midpoint": 252.84},
{"date": 20260402, "ms_of_day": 72000000, "bid": 655.61, "bid_size": 200, "ask": 656.41, "ask_size": 200, "midpoint": 656.01}
]Notes
- Accepts multiple symbols in a single call. Batch requests to reduce round-trips.
- The NBBO represents the best bid and ask across all exchanges.
- The
midpointfield is pre-computed from bid and ask.