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
Where
- Futures price
futures_price - Strike price
strike - Volatility per year
volatility - Time to expiry, in years
years - Risk-free rate per year, continuously compounded
risk_free_rate - The first standardized distance the normal distribution is read at
- The second: the first less the volatility over the time to expiry
- The standard normal cumulative distribution
- Price of a European call
price - Price of a European put
price - Spot exchange rate: domestic currency per unit of foreign
spot - Domestic interest rate per year, continuously compounded
domestic_rate - 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
| Name | Unit | Bounds | Description |
|---|---|---|---|
Option typeoption_typetext | text | A call (the right to buy) or a put (to sell) | |
Futures pricefutures_pricemoney · [0.01, 1e+07] | money | [0.01, 1e+07] | Futures or forward price for delivery at expiry |
Strikestrikemoney · [0.01, 1e+07] | money | [0.01, 1e+07] | Strike price |
Yearsyearsyears · [0.001, 100] | years | [0.001, 100] | Time to expiry, in years |
Risk free raterisk_free_raterate · [-0.1, 1] | rate | [-0.1, 1] | Risk-free rate per year, continuously compounded |
Calculationcalculationtext | text | Black-76 price and Greeks | |
Volatilityvolatilityvolatility · [0.001, 5] | volatility | [0.001, 5] | Volatility of the futures price per year |
Volatility implied by a Black-76 price (black_76_implied_volatility): 7 inputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Option typeoption_typetext | text | A call (the right to buy) or a put (to sell) | |
Futures pricefutures_pricemoney · [0.01, 1e+07] | money | [0.01, 1e+07] | Futures or forward price for delivery at expiry |
Strikestrikemoney · [0.01, 1e+07] | money | [0.01, 1e+07] | Strike price |
Yearsyearsyears · [0.001, 100] | years | [0.001, 100] | Time to expiry, in years |
Risk free raterisk_free_raterate · [-0.1, 1] | rate | [-0.1, 1] | Risk-free rate per year, continuously compounded |
Calculationcalculationtext | text | Volatility implied by a Black-76 price | |
Option priceoption_pricemoney · [0, 1e+12] | money | [0, 1e+12] | The option's price |
Garman-Kohlhagen price and Greeks (garman_kohlhagen): 8 inputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Option typeoption_typetext | text | A call (the right to buy) or a put (to sell) | |
Spotspotratio · [0.0001, 1e+06] | ratio | [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] | ratio | [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] | years | [0.001, 100] | Time to expiry, in years |
Domestic ratedomestic_raterate · [-0.1, 1] | rate | [-0.1, 1] | Interest rate of the quote (domestic) currency, continuously compounded |
Foreign rateforeign_raterate · [-0.1, 1] | rate | [-0.1, 1] | Interest rate of the base (foreign) currency, continuously compounded |
Calculationcalculationtext | text | Garman-Kohlhagen price and Greeks | |
Volatilityvolatilityvolatility · [0.001, 5] | volatility | [0.001, 5] | Volatility of the exchange rate per year |
Volatility implied by a Garman-Kohlhagen price (garman_kohlhagen_implied_volatility): 8 inputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Option typeoption_typetext | text | A call (the right to buy) or a put (to sell) | |
Spotspotratio · [0.0001, 1e+06] | ratio | [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] | ratio | [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] | years | [0.001, 100] | Time to expiry, in years |
Domestic ratedomestic_raterate · [-0.1, 1] | rate | [-0.1, 1] | Interest rate of the quote (domestic) currency, continuously compounded |
Foreign rateforeign_raterate · [-0.1, 1] | rate | [-0.1, 1] | Interest rate of the base (foreign) currency, continuously compounded |
Calculationcalculationtext | text | Volatility implied by a Garman-Kohlhagen price | |
Option priceoption_pricemoney · [0, 1e+12] | money | [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
| Name | Unit | Bounds | Description |
|---|---|---|---|
Calculationcalculationtext | text | Black-76 price and Greeks | |
Pricepricemoney · [0, 1e+15] | money | [0, 1e+15] | Option price |
Deltadeltaratio · [-100000, 100000] | ratio | [-100000, 100000] | Change in price per unit of the futures price |
Gammagammaratio · [0, 1e+12] | ratio | [0, 1e+12] | Change in delta per unit of the futures price |
Vegavegamoney · [0, 1e+15] | money | [0, 1e+15] | Change in price per 1.00 of volatility |
Thetathetamoney · [-1e+15, 1e+15] | money | [-1e+15, 1e+15] | Change in price per year that passes |
Rhorhomoney · [-1e+15, 1e+15] | money | [-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
| Name | Unit | Bounds | Description |
|---|---|---|---|
Implied volatilityimplied_volatilityvolatility · [0.001, 5] | volatility | [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] | money | [0, 1e+15] | No-arbitrage lower bound on the price |
Upper boundupper_boundmoney · [0, 1e+15] | money | [0, 1e+15] | No-arbitrage upper bound on the price |
Calculationcalculationtext | text | Volatility implied by a Black-76 price |
Garman-Kohlhagen price and Greeks (garman_kohlhagen): 8 outputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Calculationcalculationtext | text | Garman-Kohlhagen price and Greeks | |
Pricepricemoney · [0, 1e+15] | money | [0, 1e+15] | Option price, in the quote currency per unit of base |
Deltadeltaratio · [-100000, 100000] | ratio | [-100000, 100000] | Change in price per unit of the spot rate |
Gammagammaratio · [0, 1e+12] | ratio | [0, 1e+12] | Change in delta per unit of the spot rate |
Vegavegamoney · [0, 1e+15] | money | [0, 1e+15] | Change in price per 1.00 of volatility |
Thetathetamoney · [-1e+15, 1e+15] | money | [-1e+15, 1e+15] | Change in price per year that passes |
Domestic rhodomestic_rhomoney · [-1e+15, 1e+15] | money | [-1e+15, 1e+15] | Change in price per 1.00 of the domestic rate |
Foreign rhoforeign_rhomoney · [-1e+15, 1e+15] | money | [-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
| Name | Unit | Bounds | Description |
|---|---|---|---|
Implied volatilityimplied_volatilityvolatility · [0.001, 5] | volatility | [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] | money | [0, 1e+15] | No-arbitrage lower bound on the price |
Upper boundupper_boundmoney · [0, 1e+15] | money | [0, 1e+15] | No-arbitrage upper bound on the price |
Calculationcalculationtext | text | Volatility 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
- 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)
- 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)
- 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_modelwith 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:
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())
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