Black-Scholes option price and Greeks calculator
calc_finance_black_scholesThe Black-Scholes-Merton price of a European call or put with delta, gamma, vega, theta and rho, correct to the last digit shown.
Values a European option on a stock, index or currency with the Black-Scholes formula, with Merton's extension for a continuous dividend yield. The answer has the price and the five Greeks, and d1 and d2 for checking by hand. The normal distribution is evaluated with proven error bounds, so every digit returned is correct, including for options far in or out of the money where spreadsheet formulas lose digits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spot": "<spot>",
"strike": "<strike>",
"time_to_expiry_years": "<time_to_expiry_years>",
"volatility_percent": "<volatility_percent>",
"risk_free_rate_percent": "<risk_free_rate_percent>",
"option_type": "<option_type>"
},
"name": "calc_finance_black_scholes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | The underlying's price now. A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 1000000000000000. | |
| strike | Yes | The option's strike price. A ratio of two decimals such as "0.08/12" is accepted. Allowed: > 0 and <= 1000000000000000. | |
| options | No | Precision and rounding of the results (default: rounding=half_even, decimals=6). | |
| option_type | Yes | Call or put. Options: call: the right to buy; put: the right to sell | |
| volatility_percent | Yes | Volatility per year in percent (20 for 20%). Allowed: > 0 and <= 1000. Unit: percent. | |
| time_to_expiry_years | Yes | 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. | |
| dividend_yield_percent | No | Dividend yield per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent. | 0 |
| risk_free_rate_percent | Yes | Risk-free interest rate per year in percent, continuously compounded. Allowed: >= -50 and <= 100. Unit: percent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The inputs as understood. | |
| result | Yes | ||
| formula | No | ||
| receipt | No | Only with ?receipt=true: a signed receipt for this answer, a JSON Web Token signed with Ed25519 (alg EdDSA). Its claims are iss, iat, jti (the request id), endpoint, date and response (this response without the receipt). Check it with the keys at /.well-known/jwks.json or POST /v1/receipts/verify. | |
| warnings | Yes | ||
| exactness | Yes | For each decimal output: exact; rounded (correctly, to the precision); rounded_uncertified (the last digit could not be proven); or underflow (below 1e-100, reported as 0). | |
| precision | No | The precision and rounding that were applied. | |
| calculator | Yes | The calculator and version that ran. | |
| references | No |