Calculate the third order Greeks of an option based on the Black Scholes Model. This will return the following Greeks per Strike Price and Expiration Date:

  • Speed: measures the rate of change in Gamma with respect to changes in the underlying price.
  • Zomma: measures the rate of change of gamma with respect to changes in volatility.
  • Color: also referred to as gamma decay or DgammaDtime measures the rate of change of gamma over the passage of time.
  • Ultima: measures the sensitivity of the option vomma with respect to change in volatility.

For a deeper explanation, please have a look at: https://en.wikipedia.org/wiki/Greeks_(finance) and the references to the literature as found on this page.

By default the most recent risk free rate, dividend yield and stock price is used, you can alter this by changing the start date. The volatility is calculated based on the daily returns of the stock price and the selected period (this can be altered by defining this accordingly when defining the Toolkit class, start_date and end_date).

Third-Order Greeks in Python

collect_third_order_greeks is part of the Options module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call collect_third_order_greeks as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(["MU", "AMZN"], api_key="FINANCIAL_MODELING_PREP_KEY")

toolkit.options.collect_third_order_greeks().loc["MU"]

Which returns:

Strike Price (Period(‘2026-07-30’, ‘D’), ‘Speed’) (Period(‘2026-07-30’, ‘D’), ‘Zomma’) (Period(‘2026-07-30’, ‘D’), ‘Color’) (Period(‘2026-07-30’, ‘D’), ‘Ultima’) (Period(‘2026-07-31’, ‘D’), ‘Speed’) (Period(‘2026-07-31’, ‘D’), ‘Zomma’) (Period(‘2026-07-31’, ‘D’), ‘Color’) (Period(‘2026-07-31’, ‘D’), ‘Ultima’)
1170 0 -0.0008 -0.0044 -1.4174 0 -0.0008 -0.0044 -1.4146
1175 0 -0.0007 -0.0042 -1.4564 0 -0.0008 -0.0042 -1.4547
1180 0 -0.0007 -0.0039 -1.4938 0 -0.0007 -0.0039 -1.4934
1185 0 -0.0006 -0.0037 -1.5295 0 -0.0007 -0.0037 -1.5305
1190 0 -0.0006 -0.0034 -1.5635 0 -0.0006 -0.0034 -1.5659
1195 0 -0.0006 -0.0031 -1.5957 0 -0.0006 -0.0032 -1.5996
1200 0 -0.0005 -0.0029 -1.626 0 -0.0005 -0.0029 -1.6316
1205 0 -0.0005 -0.0026 -1.6543 0 -0.0005 -0.0027 -1.6616
1210 0 -0.0004 -0.0024 -1.6806 0 -0.0005 -0.0025 -1.6898
1215 0 -0.0004 -0.0021 -1.7049 0 -0.0004 -0.0022 -1.716

Parameters

collect_third_order_greeks accepts the following parameters:

  • start_date (str | None, optional): The start date which determines the stock price. Defaults to None which means it will use the most recent date.
  • strike_price_range (float): The percentage range to use for the strike prices. Defaults to 0.25 which equals 25% and thus results in strike prices from 75 to 125 if the current stock price is 100.
  • strike_step_size (int): The step size to use for the strike prices. Defaults to 5 which means that the strike prices will be 75, 80, 85, 90, 95, 100, 105, 110, 115 and 120 if the current stock price is 100.
  • expiration_time_range (int): The number of days to use for the time to expiration. Defaults to 30 which equals 30 days.
  • risk_free_rate (float, optional): The risk free rate to use for the calculation. Defaults to None which means it will use the current risk free rate.
  • dividend_yield (float, optional): The dividend yield to use for the calculation. Defaults to None which means it will use the current dividend yield.
  • show_input_info (bool, optional): Whether to show the input information. Defaults to False.
  • rounding (int | None, optional): The number of decimals to round the results to. Defaults to 4.
  • standardize (bool, optional): Whether to standardize (Z-Score) the result across the time to expiration columns for each ticker and strike price. Defaults to False.
Share