Heston-Nandi GARCH Model
Calculate European option prices in the GARCH model of Heston and Nandi (2000): what calls and puts on each ticker are worth when its variance follows a GARCH process with a leverage effect, with the GARCH parameters fitted on each ticker’s own daily returns.
Where the Black-Scholes model takes one volatility for the whole life of the option, the Heston-Nandi model lets the daily variance follow a GARCH(1, 1) process with a leverage effect: it starts from the variance the GARCH filter forecasts for tomorrow, reverts to its long-run level at the speed the returns show, and rises more after a fall than after a rise. The prices therefore follow the current volatility regime of the stock and carry a skew, without any option prices as input. It is the GARCH option pricing model with a closed form.
The parameters are fitted by maximum likelihood on the daily log returns (from the Adj Close) over the risk-free rate of the historical data up to the pricing date (see garch_option_model.get_heston_nandi_parameters), so a past pricing date only uses what was known then. Under the risk-neutral measure the price of risk \(\lambda\) becomes -½ and the asymmetry \(\gamma\) becomes \(\gamma + \lambda\) + ½, and the price follows from the moment generating function of the log price by Fourier inversion.
The formulas are as follows:
\[R_{t} - \frac{r_{t}}{252} = \lambda \cdot h_{t} + \sqrt{h} \;\text{}_{t} \cdot z_{t}\] \[h_{t+1} = \omega + \beta \cdot h_{t} + \alpha \cdot (z_{t} - \gamma \cdot \sqrt{h} \;\text{}_{t})^{2}\] \[E\left[S_{T}^{\phi}\right] = S^{\phi} \cdot \exp(A + B \cdot h),\;\; \text{with A and } B \text{ from a backward recursion over the trading days}\] \[\text{Call} = S \cdot e^{- qT} - \frac{\frac{\sqrt{F \cdot K} \cdot e^{- rT}}{\pi} \cdot \text{∫}_{0}^{\infty} \;\text{Re}\left[e^{\text{iu} \cdot \ln\left(\frac{F}{K}\right)} \cdot \phi_{X}\left(u - \frac{i}{2}\right)\right]}{\left(u^{2} + \frac{1}{4}\right) \,\mathrm{d}u}\]Where \(R_{t}\) is the daily log return, \(r_{t}\) the risk-free rate of that day, \(h_{t}\) the conditional variance, \(z_{t}\) the standard normal shock, \(\omega\), \(\alpha\), \(\beta\), \(\gamma\) and \(\lambda\) the fitted parameters, S the traded close on the pricing date, K the strike, h the variance forecast for the next trading day, r the continuously compounded risk-free rate, q the continuous dividend yield (ln(1 + dividend yield)), T the number of trading days to expiration over 252 and \(\phi_{X}\) the characteristic function of \(\ln (S_{T} / F)\) with F the forward price. The trading days to an expiration are the weekdays after the pricing date up to and including it, so an expiration on a weekend has the value of the Friday before it and one on the next weekday is one GARCH step away. The prices are computed with the COS method of Fang and Oosterlee (2008), which agrees with the Fourier integral within 1e-10 here and prices all strikes of an expiration at once.
See: Heston, S. L. and Nandi, S. (2000), “A Closed-Form GARCH Option Valuation Model”, The Review of Financial Studies, 13(3), 585-625. Checked against a Monte Carlo simulation of the risk-neutral process and the Black-Scholes price at \(\alpha = \beta = 0\).
Also known as: Heston-Nandi model, GARCH option pricing, HN-GARCH.
Example · AAPL · 2016 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_heston_nandi_model:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2016-01-01",
end_date="2025-12-31",
)
heston_nandi_put = toolkit.options.get_heston_nandi_model(
put_option=True, strike_price_range=0.15, strike_step_size=10, expiration_time_range=91
)
heston_nandi_put.loc["AAPL", ["2026-01-30", "2026-03-01", "2026-03-31"]]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was a put on Apple worth in the Heston-Nandi GARCH model fitted on ten years of returns, at the end of 2025, for the expiries of 30 January, 1 March and 31 March 2026 and strikes within 15% of the share price in $10 steps?
Which returns:
| Strike Price | 2026-01-30 | 2026-03-01 | 2026-03-31 |
|---|---|---|---|
| 230 | 0.3274 | 1.3431 | 2.6225 |
| 240 | 0.7639 | 2.3673 | 4.1071 |
| 250 | 1.6757 | 3.9996 | 6.2161 |
| 260 | 3.4456 | 6.4772 | 9.1009 |
| 270 | 6.6016 | 10.0487 | 12.8995 |
| 280 | 11.6764 | 14.9190 | 17.7130 |
| 290 | 18.8491 | 21.1761 | 23.5820 |
| 300 | 27.6352 | 28.7289 | 30.4704 |
| 310 | 37.2314 | 37.3118 | 38.2654 |
| 320 | 47.1045 | 46.5778 | 46.7968 |
10 rows
Parameters
get_heston_nandi_model accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
start_date | str | None | The date whose price, rates and fitted variance the values start from; the GARCH parameters are fitted on the returns up to it. A date without prices (a weekend or a holiday) uses the last trading day before it. Defaults to None, which uses the last date of the historical data. | "2021-01-01" |
put_option | bool | Whether to calculate the put option price. Defaults to False which means it will calculate the call option price. | True |
strike_price_range | float | The percentage range to use for the strike prices, between 0 and 1. Defaults to 0.25 which equals 25% and thus results in strike prices from 75 to 125 if the current stock price is 100. | 0.1 |
strike_step_size | float | The step size to use for the strike prices, above 0. Defaults to 5 which means that the strike prices will be 75, 80, 85, …, 120 and 125 if the current stock price is 100. | 1 |
expiration_time_range | int | The number of days to use for the time to expiration: the columns are the expirations 1 up to expiration_time_range - 1 calendar days after the start date, so at least 2. Defaults to 30, which gives expirations of 1 to 29 days. | 90 |
risk_free_rate | float | The risk free rate to use for the pricing. Defaults to None, which uses the Toolkit’s risk-free rate on the pricing date: the 10-year Treasury yield unless the Toolkit’s risk_free_rate parameter selects ‘13w’, ‘5y’ or ‘30y’, converted from its semi-annual bond-equivalent quote to continuous compounding. A rate passed here is used as given, as a continuously compounded rate. The excess returns of the fit always use the Toolkit’s daily rate. | 0.04 |
dividend_yield | float | The dividend yield to use for the calculation. Defaults to None, which uses the dividend yield on the pricing date (the dividends of the 365 days up to it relative to its close, as the continuously compounded ln(1 + q)). A given value is used as a continuous yield. | 0.02 |
show_parameters | bool | Whether to return the fitted GARCH parameters per ticker instead of the prices: omega, alpha, beta, gamma and lambda (daily), the persistence \(\beta + \alpha \gamma^{2}\), the annualized long-run and next-day volatility (√(252 * variance)) and the log-likelihood. Defaults to False. | False |
show_input_info | bool | Whether to show the input information. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
standardize | bool | Whether to standardize (Z-Score) the result across the time to expiration columns for each ticker and strike price. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |