option_history_eod
FreeValueStandardPro
Retrieve end-of-day option data across a date range. Returns one row per trading day with OHLC, volume, and open interest.
Code Example
rust
let eod: Vec<EodTick> = tdx.option_history_eod(
"SPY", "20241220", "500000", "C", "20240101", "20240301"
).await?;
for t in &eod {
println!("{}: O={} H={} L={} C={}", t.date, t.open_price(), t.high_price(),
t.low_price(), t.close_price());
}python
eod = tdx.option_history_eod("SPY", "20241220", "500000", "C",
"20240101", "20240301")go
eod, err := client.OptionHistoryEOD("SPY", "20241220", "500000", "C",
"20240101", "20240301")cpp
auto eod = client.option_history_eod("SPY", "20241220", "500000", "C",
"20240101", "20240301");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
rightstringrequired"C" for call, "P" for putstart_datestringrequiredStart date in
YYYYMMDD formatend_datestringrequiredEnd date in
YYYYMMDD formatmax_dteintoptionalMaximum days to expiration
strike_rangeintoptionalStrike range filter
Response
datestringTrading date
openfloatOpening price
highfloatHigh price
lowfloatLow price
closefloatClosing price
volumeintDaily volume
open_interestintOpen interest