Skip to content

option_list_dates

FreeValueStandardPro

List available dates for a specific option contract, filtered by data request type. This tells you which dates have data for a given contract.

Code Example

rust
let dates: Vec<String> = tdx.option_list_dates(
    "EOD", "SPY", "20241220", "500000", "C"
).await?;
python
dates = tdx.option_list_dates("EOD", "SPY", "20241220", "500000", "C")
go
dates, err := client.OptionListDates("EOD", "SPY", "20241220", "500000", "C")
cpp
auto dates = client.option_list_dates("EOD", "SPY", "20241220", "500000", "C");

Parameters

request_typestringrequired
Data type: "EOD", "TRADE", "QUOTE", or "OHLC"
symbolstringrequired
Underlying symbol
expirationstringrequired
Expiration date in YYYYMMDD format
strikestringrequired
Strike price as a scaled integer (e.g. "500000" for $500)
rightstringrequired
"C" for call, "P" for put

Response

(list)string[]
Date strings in YYYYMMDD format

Notes

  • Different request types may have different date availability. EOD data typically goes back further than tick-level trade or quote data.
  • Strike prices are expressed in tenths of a cent: "500000" = $500.00.

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