Lookback Options

Calculate the closed-form price of a lookback option: what an option on each ticker is worth whose payoff depends on the highest or lowest stock price over its life.

The formulas are those of Conze and Viswanathan (1991) for a fixed strike, Goldman, Sosin and Gatto (1979) for a floating strike and Heynen and Kat (1994) for a partial-time lookback.

  • Fixed strike: the call pays \(\max (S_{\text{max}} - K , 0)\) and the put \(\max (K - S_{\text{min}} , 0)\), the best price reached against the strike.
  • Floating strike: the call pays \(S (T) - S_{\text{min}}\), buying at the lowest price, and the put \(S_{\text{max}} - S (T)\), selling at the highest. It has no strike, so the result has a row per ticker.
  • Partial-time (a lookback period below 1): the extreme is only watched during part of the life, the first part for a floating strike and the last part for a fixed strike, which makes the option cheaper.

The options start on the pricing date, so the highest and lowest price so far are the stock price.

The formula is as follows:

\[x = \frac{\ln\left(\frac{S}{E}\right) + \left(b + \frac{\sigma^{2}}{2}\right) \cdot T}{\sigma \sqrt{T}},\;\; \text{with}\;\; E \text{ the extreme so far:}\;\; E = \max(S,\; K) \;\text{for a fixed call},\;\; \text{min(} S \text{, } K \text{) for a fixed put and } S \text{ for a floating strike}\] \[\text{Fixed Call} = e^{- rT} \cdot (E - K) + S \cdot e^{(b - r) T} \cdot N(x) - E \cdot e^{- rT} \cdot N(x - \sigma \sqrt{T}) + \frac{S \cdot e^{- rT} \cdot \sigma^{2}}{2b} \cdot \left[- \left(\frac{S}{E}\right)^{- \frac{2b}{\sigma^{2}}} \cdot N\left(x - \frac{2b \sqrt{T}}{\sigma}\right) + e^{bT} \cdot N(x)\right]\] \[\text{Fixed Put} = e^{- rT} \cdot (K - E) - S \cdot e^{(b - r) T} \cdot N(- x) + E \cdot e^{- rT} \cdot N(- x + \sigma \sqrt{T}) + \frac{S \cdot e^{- rT} \cdot \sigma^{2}}{2b} \cdot \left[\left(\frac{S}{E}\right)^{- \frac{2b}{\sigma^{2}}} \cdot N\left(- x + \frac{2b \sqrt{T}}{\sigma}\right) - e^{bT} \cdot N(- x)\right]\] \[\text{Floating Call} = S \cdot e^{(b - r) T} \cdot N(x) - E \cdot e^{- rT} \cdot N(x - \sigma \sqrt{T}) + \frac{S \cdot e^{- rT} \cdot \sigma^{2}}{2b} \cdot \left[\left(\frac{S}{E}\right)^{- \frac{2b}{\sigma^{2}}} \cdot N\left(- x + \frac{2b \sqrt{T}}{\sigma}\right) - e^{bT} \cdot N(- x)\right]\] \[\text{Floating Put} = E \cdot e^{- rT} \cdot N(- x + \sigma \sqrt{T}) - S \cdot e^{(b - r) T} \cdot N(- x) + \frac{S \cdot e^{- rT} \cdot \sigma^{2}}{2b} \cdot \left[- \left(\frac{S}{E}\right)^{- \frac{2b}{\sigma^{2}}} \cdot N\left(x - \frac{2b \sqrt{T}}{\sigma}\right) + e^{bT} \cdot N(x)\right]\] \[\text{Partial Fixed},\;\; \text{watched from}\; t_{1} = (1 - \text{Lookback Period}) \cdot \text{T:} e^{- r t_{1}} \cdot E\left[\operatorname{Fixed}(S(t_{1}),\; T - t_{1})\right],\;\; \text{in closed form with the bivariate normal distribution}\] \[\text{Partial Floating},\;\; \text{watched up to}\; t_{1} = \text{Lookback Period} \cdot \text{T:} S \cdot e^{(b - r) t_{1}} \cdot E'\left[c(e^{- X},\; T - t_{1})\right] \;\text{for a call},\;\; \text{with}\;\; c \;\text{the Black-Scholes call on a unit stock price and}\; X = \ln\left(\frac{S(t_{1})}{S_{min}(t_{1})}\right),\;\; \text{which is distributed as the running maximum of a Brownian motion with drift}\; b + \frac{\sigma^{2}}{2} \;(\text{time reversal}),\;\; \text{integrated over its density}\]

Where S is the stock price (the traded close on the pricing date), K is the strike price, r is the continuously compounded risk-free rate, q is the continuous dividend yield (ln(1 + dividend yield)), \(b = r - q\) is the cost of carry, \(\sigma\) is the annualized volatility (the standard deviation of the daily returns over the trailing 252 trading days times √252), T is the time to expiration in years (days / 365) and N is the cumulative standard normal distribution. Where \(b = 0\) the formulas are taken at b = ±0.00001 and averaged, which equals their limit to within \(O (b^{2})\).

See: Goldman, M. B., Sosin, H. B., & Gatto, M. A. (1979), “Path Dependent Options: Buy at the Low, Sell at the High”, The Journal of Finance, 34(5), 1111-1127; Conze, A., & Viswanathan (1991), “Path Dependent Options: The Case of Lookback Options”, The Journal of Finance, 46(5), 1893-1907; Heynen, R. C., & Kat, H. M. (1994), “Selective Memory”, Risk, 7(11), 73-76; Haug, E. G. (2007), The Complete Guide to Option Pricing Formulas, 2nd ed., section 4.15.

Also known as: lookback option, fixed strike lookback, floating strike lookback, partial lookback, hindsight option, no-regret option.

Example · NVDA · 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_lookback_option:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["NVDA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2025-01-01",
    end_date="2025-12-31",
)

lookback_option = toolkit.options.get_lookback_option(
    strike_price_range=0.1, strike_step_size=5, expiration_time_range=91
)

lookback_option.loc["NVDA", ["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 fixed-strike lookback call on Nvidia worth at the end of 2025, for the expiries of 30 January, 1 March and 31 March 2026 and strikes within 10% of the share price in $5 steps?

Which returns:

Parameters

get_lookback_option accepts the following parameters.

ParameterTypeDescriptionExample
start_datestr | NoneThe date whose price, volatility 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 on that day is left out with a warning. Defaults to None, which uses the last date of the historical data."2021-01-01"
put_optionboolWhether to calculate the put option price. Defaults to False which means it will calculate the call option price.True
strike_typestrThe strike. Options are: “fixed” (fixed strike), “floating” (floating strike). Defaults to “fixed”."fixed"
lookback_periodfloatThe share of the life over which the extreme is watched, above 0 and at most 1: the start of the life for a floating strike and the end for a fixed strike. Defaults to 1, the whole life.1, the whole life
strike_price_rangefloatThe 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. Not used for a floating strike.0.1
strike_step_sizefloatThe 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. Not used for a floating strike.1
expiration_time_rangeintThe 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_ratefloatThe 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
dividend_yieldfloatThe 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_input_infoboolWhether to show the input information. Defaults to False.True
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
standardizeboolWhether to standardize (Z-Score) the result across the time to expiration columns for each ticker (and strike price). Defaults to False.True
show_columnsstr | list[str] | NoneThe 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

Share