option_snapshot_quote
FreeValueStandardPro
Get the latest NBBO (National Best Bid and Offer) quote snapshot for an option contract.
Code Example
rust
let quotes: Vec<QuoteTick> = tdx.option_snapshot_quote("SPY", "20241220", "500000", "C").await?;python
quotes = tdx.option_snapshot_quote("SPY", "20241220", "500000", "C")go
quotes, err := client.OptionSnapshotQuote("SPY", "20241220", "500000", "C")cpp
auto quotes = client.option_snapshot_quote("SPY", "20241220", "500000", "C");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
rightstringrequired"C" for call, "P" for putmax_dteintoptionalMaximum days to expiration
strike_rangeintoptionalStrike range filter
min_timestringoptionalMinimum time of day as milliseconds from midnight
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