Skip to content

Derivatives

Futures and currency options

Black-76 prices of options on futures and Garman-Kohlhagen prices of currency options, with Greeks and implied volatilities.

Model id
derivatives.futures_fx_options, version 1
Domain
Derivatives
Evidence
standard
Cost class
instant: A closed-form calculation; a hosted run may take up to 2 seconds.

Formula

d1=ln⁡(F/K)+σ2T/2σTd_1 = \frac{\ln(F/K) + \sigma^2 T/2}{\sigma\sqrt{T}}c=e−rT[FN(d1)−KN(d2)]c = e^{-rT}\left[F N(d_1) - K N(d_2)\right]p=e−rT[KN(−d2)−FN(−d1)]p = e^{-rT}\left[K N(-d_2) - F N(-d_1)\right]d1=ln⁡(S/K)+(rd−rf+σ2/2)TσTd_1 = \frac{\ln(S/K) + (r_d - r_f + \sigma^2/2)T}{\sigma\sqrt{T}}c=Se−rfTN(d1)−Ke−rdTN(d2)c = S e^{-r_f T} N(d_1) - K e^{-r_d T} N(d_2)p=Ke−rdTN(−d2)−Se−rfTN(−d1)p = K e^{-r_d T} N(-d_2) - S e^{-r_f T} N(-d_1)

Where

FF
Futures price futures_price
KK
Strike price strike
σ\sigma
Volatility per year volatility
TT
Time to expiry, in years years
rr
Risk-free rate per year, continuously compounded risk_free_rate
d1d_1
The first standardized distance the normal distribution is read at
d2d_2
The second: the first less the volatility over the time to expiry
NN
The standard normal cumulative distribution
cc
Price of a European call price
pp
Price of a European put price
SS
Spot exchange rate: domestic currency per unit of foreign spot
rdr_d
Domestic interest rate per year, continuously compounded domestic_rate
rfr_f
Foreign interest rate per year, continuously compounded foreign_rate

Each symbol's field is named beside it; the inputs and outputs, with their units and bounds, are under Variables, and the citations give each formula's source.

Variables

Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.

Inputs

Black-76 price and Greeks (black_76): 7 inputs
Inputs of the calculation black_76
NameDescription
Option typeoption_typetextA call (the right to buy) or a put (to sell)
Futures pricefutures_pricemoney · [0.01, 1e+07]Futures or forward price for delivery at expiry
Strikestrikemoney · [0.01, 1e+07]Strike price
Yearsyearsyears · [0.001, 100]Time to expiry, in years
Risk free raterisk_free_raterate · [-0.1, 1]Risk-free rate per year, continuously compounded
CalculationcalculationtextBlack-76 price and Greeks
Volatilityvolatilityvolatility · [0.001, 5]Volatility of the futures price per year
Volatility implied by a Black-76 price (black_76_implied_volatility): 7 inputs
Inputs of the calculation black_76_implied_volatility
NameDescription
Option typeoption_typetextA call (the right to buy) or a put (to sell)
Futures pricefutures_pricemoney · [0.01, 1e+07]Futures or forward price for delivery at expiry
Strikestrikemoney · [0.01, 1e+07]Strike price
Yearsyearsyears · [0.001, 100]Time to expiry, in years
Risk free raterisk_free_raterate · [-0.1, 1]Risk-free rate per year, continuously compounded
CalculationcalculationtextVolatility implied by a Black-76 price
Option priceoption_pricemoney · [0, 1e+12]The option's price
Garman-Kohlhagen price and Greeks (garman_kohlhagen): 8 inputs
Inputs of the calculation garman_kohlhagen
NameDescription
Option typeoption_typetextA call (the right to buy) or a put (to sell)
Spotspotratio · [0.0001, 1e+06]Spot exchange rate, in units of the quote (domestic) currency per unit of the base (foreign) currency
Strikestrikeratio · [0.0001, 1e+06]Strike exchange rate, in units of the quote (domestic) currency per unit of the base (foreign) currency
Yearsyearsyears · [0.001, 100]Time to expiry, in years
Domestic ratedomestic_raterate · [-0.1, 1]Interest rate of the quote (domestic) currency, continuously compounded
Foreign rateforeign_raterate · [-0.1, 1]Interest rate of the base (foreign) currency, continuously compounded
CalculationcalculationtextGarman-Kohlhagen price and Greeks
Volatilityvolatilityvolatility · [0.001, 5]Volatility of the exchange rate per year
Volatility implied by a Garman-Kohlhagen price (garman_kohlhagen_implied_volatility): 8 inputs
Inputs of the calculation garman_kohlhagen_implied_volatility
NameDescription
Option typeoption_typetextA call (the right to buy) or a put (to sell)
Spotspotratio · [0.0001, 1e+06]Spot exchange rate, in units of the quote (domestic) currency per unit of the base (foreign) currency
Strikestrikeratio · [0.0001, 1e+06]Strike exchange rate, in units of the quote (domestic) currency per unit of the base (foreign) currency
Yearsyearsyears · [0.001, 100]Time to expiry, in years
Domestic ratedomestic_raterate · [-0.1, 1]Interest rate of the quote (domestic) currency, continuously compounded
Foreign rateforeign_raterate · [-0.1, 1]Interest rate of the base (foreign) currency, continuously compounded
CalculationcalculationtextVolatility implied by a Garman-Kohlhagen price
Option priceoption_pricemoney · [0, 1e+12]The option's price, in the quote currency per unit of base

Outputs

Black-76 price and Greeks (black_76): 7 outputs
Outputs of the calculation black_76
NameDescription
CalculationcalculationtextBlack-76 price and Greeks
Pricepricemoney · [0, 1e+15]Option price
Deltadeltaratio · [-100000, 100000]Change in price per unit of the futures price
Gammagammaratio · [0, 1e+12]Change in delta per unit of the futures price
Vegavegamoney · [0, 1e+15]Change in price per 1.00 of volatility
Thetathetamoney · [-1e+15, 1e+15]Change in price per year that passes
Rhorhomoney · [-1e+15, 1e+15]Change in price per 1.00 of the risk-free rate, the futures price fixed
Volatility implied by a Black-76 price (black_76_implied_volatility): 4 outputs
Outputs of the calculation black_76_implied_volatility
NameDescription
Implied volatilityimplied_volatilityvolatility · [0.001, 5]Volatility whose price is the price given; null when the price is outside the no-arbitrage bounds or the solver's range
Lower boundlower_boundmoney · [0, 1e+15]No-arbitrage lower bound on the price
Upper boundupper_boundmoney · [0, 1e+15]No-arbitrage upper bound on the price
CalculationcalculationtextVolatility implied by a Black-76 price
Garman-Kohlhagen price and Greeks (garman_kohlhagen): 8 outputs
Outputs of the calculation garman_kohlhagen
NameDescription
CalculationcalculationtextGarman-Kohlhagen price and Greeks
Pricepricemoney · [0, 1e+15]Option price, in the quote currency per unit of base
Deltadeltaratio · [-100000, 100000]Change in price per unit of the spot rate
Gammagammaratio · [0, 1e+12]Change in delta per unit of the spot rate
Vegavegamoney · [0, 1e+15]Change in price per 1.00 of volatility
Thetathetamoney · [-1e+15, 1e+15]Change in price per year that passes
Domestic rhodomestic_rhomoney · [-1e+15, 1e+15]Change in price per 1.00 of the domestic rate
Foreign rhoforeign_rhomoney · [-1e+15, 1e+15]Change in price per 1.00 of the foreign rate
Volatility implied by a Garman-Kohlhagen price (garman_kohlhagen_implied_volatility): 4 outputs
Outputs of the calculation garman_kohlhagen_implied_volatility
NameDescription
Implied volatilityimplied_volatilityvolatility · [0.001, 5]Volatility whose price is the price given; null when the price is outside the no-arbitrage bounds or the solver's range
Lower boundlower_boundmoney · [0, 1e+15]No-arbitrage lower bound on the price
Upper boundupper_boundmoney · [0, 1e+15]No-arbitrage upper bound on the price
CalculationcalculationtextVolatility implied by a Garman-Kohlhagen price

Calculator

Run the model on your own inputs, starting from its example. Rates are decimals: 0.05 is five percent. The run goes to the pyeconomics API on this site: your values travel only in the request, and nothing is stored.

Loading the calculator…

Worked example

Example futures_put. Inputs:

{
  "calculation": "black_76",
  "futures_price": 20,
  "option_type": "put",
  "risk_free_rate": 0.09,
  "strike": 20,
  "volatility": 0.25,
  "years": 0.3333
}

Outputs:

{
  "calculation": "black_76",
  "delta": -0.45730949570196344,
  "gamma": 0.1337716275386703,
  "price": 1.1165890697109795,
  "rho": -0.37215913693466945,
  "theta": -1.5716523279593906,
  "vega": 4.458608345863881
}

Assumptions

  • The futures price, or the exchange rate, follows geometric Brownian motion with a constant volatility.
  • Rates are constant and continuously compounded; a currency earns its own risk-free rate; trading is frictionless and free of arbitrage.
  • Options are European. A Black-76 option expires with the futures contract, or the futures is treated as a forward.
  • Greeks are per unit: vega and the rhos per 1.00 of volatility or rate, theta per year of calendar time. The Black-76 rho holds the futures price fixed.

Limitations

  • Results are the formula's outputs for the inputs given, not a valuation of a traded contract or trading advice.
  • A constant volatility ignores the smile; currency markets quote by delta and strangle conventions this model does not translate.
  • The implied volatility is searched for in [0.001, 5]; a price outside the no-arbitrage bounds, or one only a volatility outside that range gives, returns null with a warning.
  • American options on futures are out of scope.

Evidence

Status: standard. Textbook consensus, such as bond duration or the CAPM formula.

Every model declares one status: standard (textbook consensus), practitioner (a widely used convention), contested (under active debate), rejected (failed out of sample) or historical (a superseded methodology).

Syllabus

The 2027 CFA® Program's topic areas this model relates to, as factual tags. Each links to CFA Institute's page for its level; pyeconomics holds none of the curriculum's text.

Citations

  1. Black, F. (1976). The Pricing of Commodity Contracts. Journal of Financial Economics, 3(1-2), 167-179. doi:10.1016/0304-405X(76)90024-6 (The closed-form value of a European option on a futures contract)
  2. Garman, M. B. and Kohlhagen, S. W. (1983). Foreign Currency Option Values. Journal of International Money and Finance, 2(3), 231-237. doi:10.1016/S0261-5606(83)80001-1 (The closed-form values of European currency calls and puts)
  3. Hull, J. C. (2018). Options, Futures, and Other Derivatives, 10th ed. Pearson. https://openlibrary.org/isbn/9780134472089 (Chapters 17 and 18 (currency options; Black's model for futures options)). ISBN 9780134472089

Changelog

  • Version 1: First version.

Use it elsewhere

Documentation
The model's reference page
REST API
GET or POST /v1/models/derivatives.futures_fx_options/run
MCP tool
run_model with the model's id, derivatives.futures_fx_options. Connect an assistant
Command line
pyeconomics models run derivatives.futures_fx_options --help

The worked example, from Python and from the command line:

Python
import pyeconomics

inputs = {
    "calculation": "black_76",
    "futures_price": 20,
    "option_type": "put",
    "risk_free_rate": 0.09,
    "strike": 20,
    "volatility": 0.25,
    "years": 0.3333,
}
result = pyeconomics.run("derivatives.futures_fx_options", inputs)
print(result.to_json())
Command line
pyeconomics models run derivatives.futures_fx_options --inputs - <<'JSON'
{
  "calculation": "black_76",
  "futures_price": 20,
  "option_type": "put",
  "risk_free_rate": 0.09,
  "strike": 20,
  "volatility": 0.25,
  "years": 0.3333
}
JSON