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 data = tdx.option_list_dates("TRADE", "SPY", "20260417", "550", "C").await?;
for item in &data {
    println!("{}", item);
}
python
data = tdx.option_list_dates("TRADE", "SPY", "20260417", "550", "C")
for item in data:
    print(item)
typescript
const data = tdx.optionListDates('TRADE', 'SPY', '20260417', '550', 'C');
console.log(data);
cpp
auto data = client.option_list_dates("TRADE", "SPY", "20260417", "550", "C");
for (const auto& item : data) {
    printf("%s\n", item.c_str());
}

Parameters

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

Response

(list)string[]
Date strings in YYYYMMDD format

Sample Response

json
["20260301", "20260302", "20260303", "...", "20260401", "20260402"]

All dates with data for the specified contract and request type.

Notes

  • Different request types may have different date availability.
  • Strike prices are expressed in dollars as a string: "500" = $500.00.

Released under the Apache-2.0 License.