option_history_trade_greeks_iv
FreeValueStandardPro
Retrieve implied volatility computed on each individual trade for an option contract.
Code Example
rust
let iv: Vec<IvTick> = tdx.option_history_trade_greeks_implied_volatility(
"SPY", "20241220", "500000", "C", "20240315"
).await?;python
iv = tdx.option_history_trade_greeks_implied_volatility(
"SPY", "20241220", "500000", "C", "20240315")go
iv, err := client.OptionHistoryTradeGreeksImpliedVolatility(
"SPY", "20241220", "500000", "C", "20240315")cpp
auto iv = client.option_history_trade_greeks_implied_volatility(
"SPY", "20241220", "500000", "C", "20240315");Parameters
Parameters are identical to option_history_trade_greeks_all.
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 computed from trade price
bid_ivfloatBid IV
ask_ivfloatAsk IV
underlying_pricefloatUnderlying price at time of trade
iv_errorfloatIV solver error
datestringDate
ms_of_dayintMilliseconds from midnight
Notes
- Provides per-trade IV, which is useful for analyzing IV dynamics around large trades or sweeps.
- Compare
implied_volatilityagainstbid_iv/ask_ivto understand where in the spread the trade executed.