Expirations
FreeValueStandardPro
List available expiration dates for an option underlying.
Lists all dates of expirations that are available for an option with a given symbol. This endpoint is updated overnight.
rust
pub fn option_list_expirations(&self, symbol: &str) -> OptionListExpirationsBuilder<'_>Execute with .await → Result<Vec<String>, Error>.
Example
rust
let rows = tdx.option_list_expirations("SPY").await?;
for value in &rows {
println!("{value}");
}Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | string | yes | — | Ticker symbol (e.g. AAPL) |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
A list of strings — one expiration value per row.