option_list_strikes
FreeValueStandardPro
List all available strike prices for a given underlying symbol and expiration date.
Code Example
rust
let strikes: Vec<String> = tdx.option_list_strikes("SPY", "20241220").await?;
println!("{} strikes available", strikes.len());python
strikes = tdx.option_list_strikes("SPY", "20241220")
print(f"{len(strikes)} strikes")go
strikes, err := client.OptionListStrikes("SPY", "20241220")cpp
auto strikes = client.option_list_strikes("SPY", "20241220");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatResponse
(list)string[]Strike prices as scaled integer strings
Notes
- Strike prices are returned as scaled integers in tenths of a cent. Divide by 1000 to get the dollar value:
"500000"= $500.00. - Use option_list_expirations first to get valid expiration dates for an underlying.