Skip to content

option_history_greeks_third_order

FreeValueStandardPro

Retrieve third-order Greeks (speed, zomma, color, ultima) sampled at a given interval throughout a trading day.

Code Example

rust
let data = tdx.option_history_greeks_third_order("SPY", "20260417", "550", "C", "20260315", "60000").await?;
for t in &data {
    println!("date={} ms_of_day={} speed={:.4} zomma={:.4} color={:.4} ultima={:.4}",
        t.date, t.ms_of_day, t.speed, t.zomma, t.color, t.ultima);
}
python
data = tdx.option_history_greeks_third_order("SPY", "20260417", "550", "C", "20260315", "60000")
for t in data:
    print(f"date={t.date} ms_of_day={t.ms_of_day} speed={t.speed:.4f} "
          f"zomma={t.zomma:.4f} color={t.color:.4f} ultima={t.ultima:.4f}")
typescript
const data = tdx.optionHistoryGreeksThirdOrder('SPY', '20260417', '550', 'C', '20260315', '60000');
for (const t of data) {
    console.log(`date=${t.date} ms_of_day=${t.ms_of_day} speed=${t.speed} zomma=${t.zomma} color=${t.color} ultima=${t.ultima}`);
}
cpp
auto data = client.option_history_greeks_third_order("SPY", "20260417", "550", "C", "20260315", "60000");
for (const auto& t : data) {
    printf("date=%d ms_of_day=%d speed=%.4f zomma=%.4f color=%.4f ultima=%.4f\n",
        t.date, t.ms_of_day, t.speed, t.zomma, t.color, t.ultima);
}

Parameters

Parameters are identical to option_history_greeks_all.

symbolstringrequired
Underlying symbol
expirationstringrequired
Expiration date in YYYYMMDD format
strikestringrequired
Strike price in dollars as a string
rightstringrequired
"C" for call, "P" for put
datestringrequired
Date in YYYYMMDD format
intervalstringrequired
Accepts milliseconds ("60000") or shorthand ("1m"). Valid presets: 100ms, 500ms, 1s, 5s, 10s, 15s, 30s, 1m, 5m, 10m, 15m, 30m, 1h.
annual_dividendfloatoptional
Override annual dividend
rate_typestringoptional
Interest rate type
rate_valuefloatoptional
Override interest rate value
versionstringoptional
Greeks calculation version
strike_rangeintoptional
Strike range filter

Response

implied_volatilityfloat
Implied volatility
speedfloat
Rate of change of gamma w.r.t. underlying price
zommafloat
Rate of change of gamma w.r.t. volatility
colorfloat
Rate of change of gamma w.r.t. time
ultimafloat
Rate of change of vomma w.r.t. volatility
underlying_pricefloat
Underlying price
datestring
Date
ms_of_dayint
Milliseconds from midnight

Sample Response

json
[
  {"date": 20260402, "ms_of_day": 34260000, "speed": -0.00001120, "zomma": 0.00006120, "color": -0.00000420, "ultima": 0.00016800},
  {"date": 20260402, "ms_of_day": 34320000, "speed": -0.00001040, "zomma": 0.00005840, "color": -0.00000390, "ultima": 0.00015200}
]

Third-order Greeks at 1-minute intervals. Requires Professional subscription.

Released under the Apache-2.0 License.