Skip to content

Dates

FreeValueStandardPro

List available dates for an option contract by request type.

Lists all dates of data that are available for an option with a given symbol, request type, and expiration. This endpoint is updated overnight.

rust
pub fn option_list_dates(
    &self,
    request_type: &str,
    symbol: &str,
    expiration: &str,
) -> OptionListDatesBuilder<'_>

Optional parameters chain on the builder: .strike(&str), .right(&str). Execute with .awaitResult<Vec<String>, Error>.

Example

rust
let rows = tdx
    .option_list_dates("trade", "SPY", "20250321")
    .strike("570")
    .right("C")
    .await?;
for value in &rows {
    println!("{value}");
}

Parameters

NameTypeRequiredDefaultDescription
request_typestringyesRequest type. Accepted values: trade, quote, eod, ohlc.
symbolstringyesTicker symbol (e.g. AAPL)
expirationdateyesExpiration date YYYYMMDD
strikestringno*Strike price in dollars as a string (e.g. 500 or 17.5). Use * for wildcard selection.
rightstringnobothOption side. Accepted values: call, put, both.
timeout_msintnoPer-request deadline in milliseconds. 0 means no deadline.

Response

A list of strings — one date value per row.

Released under the Apache-2.0 License.