option_history_trade_greeks_all
FreeValueStandardPro
Retrieve all Greeks (first, second, and third order) computed on each individual trade for an option contract. Unlike interval-sampled Greeks, these are calculated at the exact moment of each trade.
Code Example
rust
let data = tdx.option_history_trade_greeks_all("SPY", "20260417", "550", "C", "20260315").await?;
for t in &data {
println!("date={} ms_of_day={} implied_volatility={:.4} delta={:.4} gamma={:.4} theta={:.4} vega={:.4} rho={:.4} vanna={:.4} charm={:.4} speed={:.4} zomma={:.4}",
t.date, t.ms_of_day, t.implied_volatility, t.delta, t.gamma, t.theta, t.vega, t.rho, t.vanna, t.charm, t.speed, t.zomma);
}python
data = tdx.option_history_trade_greeks_all("SPY", "20260417", "550", "C", "20260315")
for t in data:
print(f"date={t.date} ms_of_day={t.ms_of_day} implied_volatility={t.implied_volatility:.4f} delta={t.delta:.4f} gamma={t.gamma:.4f} theta={t.theta:.4f} "
f"vega={t.vega:.4f} rho={t.rho:.4f} vanna={t.vanna:.4f} charm={t.charm:.4f} speed={t.speed:.4f} zomma={t.zomma:.4f}")typescript
const data = tdx.optionHistoryTradeGreeksAll('SPY', '20260417', '550', 'C', '20260315');
for (const t of data) {
console.log(`date=${t.date} ms_of_day=${t.ms_of_day} implied_volatility=${t.implied_volatility} delta=${t.delta} gamma=${t.gamma} theta=${t.theta}`);
}cpp
auto data = client.option_history_trade_greeks_all("SPY", "20260417", "550", "C", "20260315");
for (const auto& t : data) {
printf("date=%d ms_of_day=%d implied_volatility=%.4f delta=%.4f gamma=%.4f theta=%.4f vega=%.4f rho=%.4f vanna=%.4f charm=%.4f speed=%.4f zomma=%.4f\n",
t.date, t.ms_of_day, t.implied_volatility, t.delta, t.gamma, t.theta, t.vega, t.rho, t.vanna, t.charm, t.speed, t.zomma);
}Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price in dollars as a string
rightstringrequired"C" for call, "P" for putdatestringrequiredDate in
YYYYMMDD formatstart_timestringoptionalStart time as milliseconds from midnight
end_timestringoptionalEnd time as milliseconds from midnight
annual_dividendfloatoptionalOverride annual dividend
rate_typestringoptionalInterest rate type
rate_valuefloatoptionalOverride interest rate value
versionstringoptionalGreeks calculation version
max_dteintoptionalMaximum days to expiration
strike_rangeintoptionalStrike range filter
Response
pricefloatTrade price
sizeintTrade size
conditionintTrade condition code
exchangeintExchange code
implied_volatilityfloatIV at time of trade
deltafloatDelta
thetafloatTheta
vegafloatVega
rhofloatRho
epsilonfloatEpsilon
lambdafloatLambda
gammafloatGamma
vannafloatVanna
charmfloatCharm
vommafloatVomma
vetafloatVeta
speedfloatSpeed
zommafloatZomma
colorfloatColor
ultimafloatUltima
underlying_pricefloatUnderlying price at time of trade
datestringDate
ms_of_dayintMilliseconds from midnight
Sample Response
json
[
{
"date": 20260402, "ms_of_day": 34203497,
"implied_volatility": 0.4290, "delta": 0.9742, "gamma": 0.000756,
"theta": -0.1645, "vega": 7.8120, "rho": 21.8812,
"vanna": -0.0267, "charm": 0.0019, "speed": -0.0000094, "zomma": 0.0000518
}
]All Greeks computed at each trade execution. Requires Professional subscription.
Notes
- Each row combines trade data with Greeks computed using the trade price and the underlying price at the exact moment of execution.
- For liquid contracts this can return a large number of rows. Use
start_time/end_timeto limit the window.