Skip to content

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

symbolstringrequired
Underlying symbol
expirationstringrequired
Expiration date in YYYYMMDD format

Response

(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.

Released under the GPL-3.0-or-later License.