option_snapshot_open_interest
FreeValueStandardPro
Get the latest open interest snapshot for an option contract.
Code Example
rust
let oi: Vec<OpenInterestTick> = tdx.option_snapshot_open_interest("SPY", "20241220", "500000", "C").await?;python
oi = tdx.option_snapshot_open_interest("SPY", "20241220", "500000", "C")go
oi, err := client.OptionSnapshotOpenInterest("SPY", "20241220", "500000", "C")cpp
auto oi = client.option_snapshot_open_interest("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
open_interestintCurrent open interest
datestringDate
Notes
- Open interest is reported once per day, typically reflecting the previous day's settlement.