curatedapi
Browse the docs

Guides

Finance

Excel functions

Late payments

E-invoices

Accounting

Number checks

VAT and GST

Billing and pricing

Money and currencies

Dates and time

Math

Unit conversion

Everyday

Health

Black-76 for options on futures API

The Black (1976) price and Greeks of a European option on a future or forward: commodity and bond futures options, caps, floors and swaptions.

POST https://api.curatedapi.com/v1/calc/finance/black-76

Values a European option on a futures or forward price with Black's 1976 model. It is the Black-Scholes formula with the forward price in place of the spot price and the whole payoff discounted, and is the market standard for options on commodity and interest-rate futures. The answer has the price, the Greeks with respect to the forward price, and d1 and d2.

Formula

call = e^(−rT)·(F·Φ(d1) − K·Φ(d2)); put = e^(−rT)·(K·Φ(−d2) − F·Φ(−d1)); d1 = (ln(F/K) + σ²·T/2) / (σ·√T), d2 = d1 − σ·√T
  • The model is for European options, which can be exercised only at expiry. An American option is worth at least as much, and more when early exercise can pay.
  • Rates are continuously compounded and per year, and time is in years. A rate quoted with annual compounding, R, is ln(1 + R) continuously compounded.
  • vega and rho are the change for a move of one percentage point in volatility or the rate; theta is the change over one calendar day (the yearly figure divided by 365).
  • rho here is −T × price ÷ 100: with the forward price held fixed, the rate only discounts the payoff.

Inputs

Send numbers as strings to keep every digit. options sets precision and rounding (see numbers and rounding).

InputTypeDescription
forward required decimal (string) The futures or forward price now. A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 1000000000000000.
strike required decimal (string) The option's strike price. A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 1000000000000000.
time_to_expiry_years required decimal (string) Time to expiry in years. Write days as a ratio, such as "30/365". A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 100.
volatility_percent required decimal (string) Volatility per year in percent (20 for 20%). Allowed: > 0 and <= 1000. Unit: percent.
risk_free_rate_percent required decimal (string) Risk-free interest rate per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent.
option_type required call | put Call or put. Options: call: the right to buy; put: the right to sell
options.rounding half_even | half_up | half_down | up | down | ceiling | floor Rounding mode applied once to each result. Default half_even.
options.decimals integer Round results to this many digits after the decimal point.
options.significant_digits integer Round results to this many significant digits.

Result

Under result in the answer, next to exactness, precision, inputs, formula, references and warnings.

ResultTypeDescription
pricedecimal (string)The option's value. Unit: currency.
deltadecimal (string)Change in the price for a change of 1 in the underlying price.
gammadecimal (string)Change in delta for a change of 1 in the underlying price.
vegadecimal (string)Change in the price for one percentage point more volatility.
thetadecimal (string)Change in the price over one calendar day, other things equal.
rhodecimal (string)Change in the price for one percentage point more interest.
d1decimal (string)The model's d1.
d2decimal (string)The model's d2.

Examples

A nine-month call at the money: future at 19, 28% volatility, 10% rate

Requestcurl
curl https://api.curatedapi.com/v1/calc/finance/black-76 \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "forward": "19",
    "strike": "19",
    "time_to_expiry_years": "0.75",
    "volatility_percent": "28",
    "risk_free_rate_percent": "10",
    "option_type": "call"
  }'
200 OKResponse
{
  "calculator": "finance/black-76@1",
  "result": {
    "price": "1.701051",
    "delta": "0.508636",
    "gamma": "0.079745",
    "vega": "0.060455",
    "theta": "-0.002626",
    "rho": "-0.012758",
    "d1": "0.121244",
    "d2": "-0.121244"
  },
  "exactness": {
    "price": "rounded",
    "delta": "rounded",
    "gamma": "rounded",
    "vega": "rounded",
    "theta": "rounded",
    "rho": "rounded",
    "d1": "rounded",
    "d2": "rounded"
  },
  "precision": {
    "rounding": "half_even",
    "decimals": 6
  },
  "inputs": {
    "forward": "19",
    "strike": "19",
    "time_to_expiry_years": "0.75",
    "volatility_percent": "28",
    "risk_free_rate_percent": "10",
    "option_type": "call"
  },
  "formula": "call = e^(−rT)·(F·Φ(d1) − K·Φ(d2)); put = e^(−rT)·(K·Φ(−d2) − F·Φ(−d1)); d1 = (ln(F/K) + σ²·T/2) / (σ·√T), d2 = d1 − σ·√T",
  "references": [
    {
      "title": "CME Group: Introduction to options theoretical pricing",
      "url": "https://www.cmegroup.com/education/courses/introduction-to-options/options-theoretical-pricing-models.html"
    },
    {
      "title": "The Nobel Prize in Economic Sciences 1997: Merton and Scholes, a new method to determine the value of derivatives",
      "url": "https://www.nobelprize.org/prizes/economic-sciences/1997/press-release/"
    }
  ],
  "warnings": []
}

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Errors share one format; see errors. Billing, retries and batches work the same for every endpoint.