Skip to content

Option Greeks ​

Server-computed Greeks ​

The option/*/greeks/* reference endpoints return Greeks computed by ThetaData using the Black-Scholes model, specifically the formulas catalogued on Wikipedia's Greeks page. Input conventions:

  • Risk-free rate defaults to SOFR; override the source with rate_type (SOFR or a Treasury tenor) or pin an exact rate with rate_value.
  • Dividends are ignored unless you pass annual_dividend, a continuous yield as a decimal, or annual_dividend_amount, a dividend in dollars per share per year; the server refuses annual_dividend_amount beside a non-zero annual_dividend.
  • Option price input is the NBBO midpoint by default; use_market_value switches snapshot calculations to the market value, option_use_nbbo=false switches the end-of-day endpoints to the last trade price, and trade-Greeks endpoints use the trade price.
  • Underlying price input is the last underlying trade; underlyer_use_nbbo switches to the underlying NBBO midpoint.
  • Implied volatility is solved numerically from the option price; each row carries an iv_error residual so you can judge the fit.
  • version selects the calculation revision; latest uses real time-to-expiration down to a one-hour floor.

The binomial Greeks routes also report where each row's implied volatility came from, as implied_vol_source: own_quote (the contract's own midpoint), out_of_the_money (the out-of-the-money option at the same strike), interpolated or extrapolated (filled between or past the quoted strikes). Python and TypeScript read it as that name, absent on the routes that do not send it. In C and C++ it is an int32_t code, valid when has_implied_vol_source is set: compare it with THETADATADX_IMPLIED_VOL_SOURCE_OWN_QUOTE, THETADATADX_IMPLIED_VOL_SOURCE_OUT_OF_THE_MONEY, THETADATADX_IMPLIED_VOL_SOURCE_INTERPOLATED and THETADATADX_IMPLIED_VOL_SOURCE_EXTRAPOLATED, or pass it to thetadatadx::implied_vol_source_name() in C++ for the name.

Greek-by-Greek field definitions appear on every Greeks reference page's response table.

Released under the Apache-2.0 License.