option_history_quote
FreeValueStandardPro
Retrieve NBBO quotes for an option contract, sampled at a specified interval.
Code Example
rust
let quotes: Vec<QuoteTick> = tdx.option_history_quote(
"SPY", "20241220", "500000", "C", "20240315", "60000"
).await?;python
quotes = tdx.option_history_quote("SPY", "20241220", "500000", "C",
"20240315", "60000")go
quotes, err := client.OptionHistoryQuote("SPY", "20241220", "500000", "C",
"20240315", "60000")cpp
auto quotes = client.option_history_quote("SPY", "20241220", "500000", "C",
"20240315", "60000");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
rightstringrequired"C" for call, "P" for putdatestringrequiredDate in
YYYYMMDD formatintervalstringrequiredSampling interval in milliseconds. Use
"0" for every quote change.max_dteintoptionalMaximum days to expiration
strike_rangeintoptionalStrike range filter
Response
bid_pricefloatBest bid price
bid_sizeintBid size
ask_pricefloatBest ask price
ask_sizeintAsk size
datestringDate
ms_of_dayintMilliseconds from midnight
bid_exchangeintBid exchange code
ask_exchangeintAsk exchange code
Notes
- Use
"0"as the interval to get every quote change (tick-by-tick). - For liquid contracts with
"0"interval, the response can be very large. In Rust, use the_streamvariant.