option_history_greeks_first_order
FreeValueStandardPro
Retrieve first-order Greeks (delta, theta, vega, rho, epsilon, lambda) sampled at a given interval throughout a trading day.
Code Example
rust
let g: Vec<GreeksTick> = tdx.option_history_greeks_first_order(
"SPY", "20241220", "500000", "C", "20240315", "60000"
).await?;python
g = tdx.option_history_greeks_first_order("SPY", "20241220", "500000", "C",
"20240315", "60000")go
g, err := client.OptionHistoryGreeksFirstOrder("SPY", "20241220", "500000", "C",
"20240315", "60000")cpp
auto g = client.option_history_greeks_first_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
deltafloatRate of change of option price w.r.t. underlying price
thetafloatRate of change of option price w.r.t. time
vegafloatRate of change of option price w.r.t. volatility
rhofloatRate of change of option price w.r.t. interest rate
epsilonfloatRate of change of option price w.r.t. dividend yield
lambdafloatPercentage change of option per percentage change of underlying
underlying_pricefloatUnderlying price
datestringDate
ms_of_dayintMilliseconds from midnight