option_history_greeks_second_order
FreeValueStandardPro
Retrieve second-order Greeks (gamma, vanna, charm, vomma, veta) sampled at a given interval throughout a trading day.
Code Example
rust
let g: Vec<GreeksTick> = tdx.option_history_greeks_second_order(
"SPY", "20241220", "500000", "C", "20240315", "60000"
).await?;python
g = tdx.option_history_greeks_second_order("SPY", "20241220", "500000", "C",
"20240315", "60000")go
g, err := client.OptionHistoryGreeksSecondOrder("SPY", "20241220", "500000", "C",
"20240315", "60000")cpp
auto g = client.option_history_greeks_second_order("SPY", "20241220", "500000", "C",
"20240315", "60000");Parameters
Parameters are identical to option_history_greeks_all.
symbolstringrequiredUnderlying symbol
expirationstringrequiredExpiration date in
YYYYMMDD formatstrikestringrequiredStrike price as scaled integer
rightstringrequired"C" for call, "P" for putdatestringrequiredDate in
YYYYMMDD formatintervalstringrequiredSampling interval in milliseconds
annual_dividendfloatoptionalOverride annual dividend
rate_typestringoptionalInterest rate type
rate_valuefloatoptionalOverride interest rate value
versionstringoptionalGreeks calculation version
strike_rangeintoptionalStrike range filter
Response
implied_volatilityfloatImplied volatility
gammafloatRate of change of delta w.r.t. underlying price
vannafloatRate of change of delta w.r.t. volatility
charmfloatRate of change of delta w.r.t. time
vommafloatRate of change of vega w.r.t. volatility
vetafloatRate of change of vega w.r.t. time
underlying_pricefloatUnderlying price
datestringDate
ms_of_dayintMilliseconds from midnight