option_at_time_ohlc
FreeValueStandardPro
Retrieve the NBBO quote at a specific time of day across a date range for an option contract. Returns one quote per date, the prevailing quote at the specified time.
Code Example
rust
let quotes: Vec<QuoteTick> = tdx.option_at_time_quote(
"SPY", "20241220", "500000", "C",
"20240101", "20240301", "34200000" // 9:30 AM ET
).await?;python
quotes = tdx.option_at_time_quote("SPY", "20241220", "500000", "C",
"20240101", "20240301", "34200000")go
quotes, err := client.OptionAtTimeQuote("SPY", "20241220", "500000", "C",
"20240101", "20240301", "34200000")cpp
auto quotes = client.option_at_time_quote("SPY", "20241220", "500000", "C",
"20240101", "20240301", "34200000");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
rightstringrequired"C" for call, "P" for putstart_datestringrequiredStart date in
YYYYMMDD formatend_datestringrequiredEnd date in
YYYYMMDD formattime_of_daystringrequiredMilliseconds from midnight ET (e.g.
"34200000" = 9:30 AM)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
- Common time values:
"34200000"(9:30 AM),"46800000"(1:00 PM),"57600000"(4:00 PM). - Useful for building daily spread or mid-price time series at a consistent intraday timestamp.