Skip to content

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

symbolstringrequired
Underlying symbol
expirationstringrequired
Expiration date in YYYYMMDD format
strikestringrequired
Strike price as scaled integer
rightstringrequired
"C" for call, "P" for put
max_dteintoptional
Maximum days to expiration
strike_rangeintoptional
Strike range filter
min_timestringoptional
Minimum time of day as milliseconds from midnight

Response

open_interestint
Current open interest
datestring
Date

Notes

  • Open interest is reported once per day, typically reflecting the previous day's settlement.

Released under the GPL-3.0-or-later License.