Quote
FreeValueStandardPro
Get the latest NBBO quote snapshot for one or more stocks.
- Returns a real-time last BBO quote from the Nasdaq Basic feed if the account has a stocks standard or pro subscription.
- Returns a 15-minute delayed NBBO quote from the UTP & CTA feeds account has the stocks value subscription subscription.
- Theta Data resets its snapshot cache at midnight ET every day. This endpoint may not work on a weekend where there were no eligible messages sent over exchange feeds. We recommend using historic requests during the weekend.
rust
pub fn stock_snapshot_quote(&self, symbols: &[&str]) -> StockSnapshotQuoteBuilder<'_>Optional parameters chain on the builder: .venue(&str), .min_time(&str). Execute with .await → Result<Vec<QuoteTick>, Error>, or decode chunk-by-chunk with .stream(handler).
Example
rust
let rows = tdx.stock_snapshot_quote(&["AAPL"]).await?;
for t in &rows {
println!("date={} ms_of_day={} bid={} ask={}", t.date, t.ms_of_day, t.bid, t.ask);
}Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | symbols | yes | — | Comma-separated ticker symbols (e.g. AAPL,MSFT) |
venue | string | no | nqb | Venue/exchange filter. Accepted values: nqb, utp_cta. |
min_time | string | no | — | Minimum time filter |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
Rows of QuoteTick:
| Field | Type | Description |
|---|---|---|
ms_of_day | i32 | Milliseconds since midnight Eastern Time. |
bid_size | i32 | Last NBBO bid size. |
bid_exchange | i32 | Exchange code of the NBBO bid. |
bid | f64 | Last NBBO bid price. |
bid_condition | i32 | Quote condition code on the bid side. |
ask_size | i32 | Last NBBO ask size. |
ask_exchange | i32 | Exchange code of the NBBO ask. |
ask | f64 | Last NBBO ask price. |
ask_condition | i32 | Quote condition code on the ask side. |
date | i32 | Trading date as a YYYYMMDD integer. |