Spread Options
Calculate the price of a European spread option of each ticker over a second asset (the benchmark by default): what an option on how much the ticker gains over the second asset is worth, with the closed-form approximation of Bjerksund and Stensland (2011) or of Kirk (1995).
The option is on one share of the ticker less the units of the second asset worth the same today, so the spread starts at 0 and the call pays max(S1 - S2 - K, 0) at expiration, where S1 - S2 is what the ticker gained over the second asset per share. The strikes run from the strike price range below to the strike price range above a spread of 0, as a share of the ticker’s price.
The spread of two lognormal prices has no closed-form distribution. Kirk takes F2 + K as one lognormal price, and Bjerksund and Stensland exercise where F1 exceeds a boundary fitted to the exercise region, which gives a lower bound that is closer to the exact price. At a strike of 0 both are Margrabe’s exact exchange option (get_exchange_option).
The formula is as follows:
\[F_{1} = S_{1} \cdot e^{(r - q_{1}) \cdot T},\;\; F_{2} = S_{2} \cdot e^{(r - q_{2}) \cdot T},\;\; \text{with}\;\; S_{2} = S_{1} \;\text{today}\] \[\text{Kirk Call} = e^{- rT} \cdot (F_{1} \cdot N(d_{1}) - (F_{2} + K) \cdot N(d_{1} - \sigma K \sqrt{T})),\;\; \sigma K^{2} = \sigma 1^{2} - 2 \rho \sigma 1 \sigma 2 \cdot b + \sigma 2^{2} \cdot b^{2},\;\; b = \frac{F_{2}}{F_{2} + K}\] \[d_{1} = \frac{\ln\left(\frac{F_{1}}{F_{2} + K}\right) + \frac{\sigma K^{2} \cdot T}{2}}{\sigma K \sqrt{T}}\] \[\text{Bjerksund-Stensland Call} = e^{- rT} \cdot (F_{1} \cdot N(e_{1}) - F_{2} \cdot N(e_{2}) - K \cdot N(e_{3}))\] \[e_{1} = \frac{\ln\left(\frac{F_{1}}{F_{2} + K}\right) + \left(\frac{\sigma 1^{2}}{2} - b \rho \sigma 1 \sigma 2 + \frac{b^{2} \sigma 2^{2}}{2}\right) \cdot T}{\sigma K \sqrt{T}}\] \[e_{2} = \frac{\ln\left(\frac{F_{1}}{F_{2} + K}\right) + \left(- \frac{\sigma 1^{2}}{2} + \rho \sigma 1 \sigma 2 + \frac{b^{2} \sigma 2^{2}}{2} - b \sigma 2^{2}\right) \cdot T}{\sigma K \sqrt{T}}\] \[e_{3} = \frac{\ln\left(\frac{F_{1}}{F_{2} + K}\right) + \left(- \frac{\sigma 1^{2}}{2} + \frac{b^{2} \sigma 2^{2}}{2}\right) \cdot T}{\sigma K \sqrt{T}}\] \[\text{Put} = \text{Call} - e^{- rT} \cdot (F_{1} - F_{2} - K)\]Where S1 is the ticker’s price (the traded close on the pricing date), K the strike price, r the continuously compounded risk-free rate, q1 and q2 the dividend yields (ln(1 + dividend yield), continuously compounded), \(\sigma_{1}\) and \(\sigma_{2}\) the annualized volatilities (the standard deviation of the daily returns over the trailing 252 trading days of each times √252), \(\rho\) the correlation of the daily returns of the two over the trailing 252 days on which both traded, T the time to expiration in years (days / 365) and N the cumulative standard normal distribution.
Spread options on prices, strikes and correlations of your own (such as a crack or a calendar spread of futures), are priced by the model function financetoolkit.options.multiasset.multi_asset_model.get_spread_option.
See: Kirk, E. (1995), “Correlation in the Energy Markets”, in Managing Energy Price Risk, Risk Publications, 71-78; Bjerksund, P. & Stensland, G. (2014), “Closed Form Spread Option Valuation”, Quantitative Finance, 14(10), 1785-1794; Haug, E. G. (2007), The Complete Guide to Option Pricing Formulas, 2nd ed., chapter 5.
Also known as: spread option, relative performance option, Kirk’s approximation.
Example · AAPL, MSFT · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_spread_option:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-12-31",
)
spread_option = toolkit.options.get_spread_option(
strike_price_range=0.1, expiration_time_range=91
)
spread_option.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 call on how much Apple outperforms the S&P 500 (SPY) worth at the end of 2025, for the expiries of 30 January, 1 March and 31 March 2026 and spread strikes within 10% of the share price?
Which returns:
| Strike Price | 2026-01-30 | 2026-03-01 | 2026-03-31 |
|---|---|---|---|
| -30 | 29.9950 | 30.5914 | 31.4129 |
| -25 | 25.2476 | 26.2470 | 27.3610 |
| -20 | 20.7127 | 22.1748 | 23.5799 |
| -15 | 16.4978 | 18.4309 | 20.1016 |
| -10 | 12.7141 | 15.0607 | 16.9489 |
| -5 | 9.4529 | 12.0938 | 14.1342 |
| 0 | 6.7664 | 9.5415 | 11.6590 |
| 5 | 4.6569 | 7.3963 | 9.5149 |
| 10 | 3.0798 | 5.6345 | 7.6844 |
| 15 | 1.9575 | 4.2199 | 6.1438 |
| 20 | 1.1965 | 3.1087 | 4.8646 |
| 25 | 0.7041 | 2.2539 | 3.8161 |
| 30 | 0.3994 | 1.6095 | 2.9672 |
13 rows
Parameters
get_spread_option accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
start_date | str | None | The date whose prices, volatilities, correlation and rates the values start from; a date without prices (a weekend or a holiday) uses the last trading day before it, and a ticker without a price or a month of returns shared with the second asset is left out with a warning. Defaults to None, which uses the last date of the historical data. | "2021-01-01" |
second_ticker | str | None | The second asset, “Benchmark” or one of the tickers (which is then left out of the rows). Defaults to None, which uses the benchmark. | None, which uses the benchmark |
put_option | bool | Whether the option is a put. Defaults to False. | True |
method | str | The approximation. Options are: “bjerksund_stensland” (Bjerksund and Stensland, 2011, the more accurate), “kirk” (Kirk, 1995). Defaults to “bjerksund_stensland”. | "bjerksund_stensland" |
strike_price_range | float | The range of the strike prices around a spread of 0, as a share of the ticker’s price, at most 0.5 (both approximations take the second asset’s forward price plus the strike as a lognormal price, which lower strikes bring close to zero). Defaults to 0.25, which gives strikes from -25 to 25 for a price of 100. | 0.1 |
strike_step_size | float | The step size of the strike prices. Defaults to 5, which gives the strikes -25, -20, …, 20 and 25 for a price of 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 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 calculation. 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. | 0.04 |
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 |
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 |
References
- Library Referenced against QuantLib’s BjerksundStenslandSpreadEngine
- Library Referenced against QuantLib’s KirkEngine