Black-Scholes Option Price
black-scholesBlack-Scholes price of a European call or put option, plus d1/d2. Volatility and rates in percent; optional continuous dividend yield.
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>",
"years": "<years>",
"volatilityPct": "<volatilityPct>",
"riskFreePct": "<riskFreePct>"
},
"name": "black-scholes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | Current underlying price. | |
| type | No | Option type (default call). | |
| years | Yes | Time to expiry in years. | |
| strike | Yes | Strike price. | |
| riskFreePct | Yes | Risk-free rate in percent. | |
| volatilityPct | Yes | Annualized volatility in percent. | |
| dividendYieldPct | No | Continuous dividend yield in percent (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d1 | No | d1. | |
| d2 | No | d2. | |
| price | No | Option price (null if degenerate). |