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 g: Vec<GreeksTick> = tdx.option_history_trade_greeks_all(
"SPY", "20241220", "500000", "C", "20240315"
).await?;python
g = tdx.option_history_trade_greeks_all("SPY", "20241220", "500000", "C", "20240315")go
g, err := client.OptionHistoryTradeGreeksAll("SPY", "20241220", "500000", "C", "20240315")cpp
auto g = client.option_history_trade_greeks_all("SPY", "20241220", "500000", "C", "20240315");Parameters
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
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
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.