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 .await → Result<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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
request_type | string | yes | — | Request type. Accepted values: trade, quote, eod, ohlc. |
symbol | string | yes | — | Ticker symbol (e.g. AAPL) |
expiration | date | yes | — | Expiration date YYYYMMDD |
strike | string | no | * | Strike price in dollars as a string (e.g. 500 or 17.5). Use * for wildcard selection. |
right | string | no | both | Option side. Accepted values: call, put, both. |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
A list of strings — one date value per row.