Black-Scholes option calculator
price_optionCalculate European option fair value and Greeks (delta, gamma, theta, vega, rho, ITM probability), or derive implied volatility from a market price. Works offline.
Instructions
Price a European option and its Greeks (delta, gamma, theta per day, vega, rho, probability of expiring in the money), or give market_price to back out implied volatility. Works offline.
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>",
"days_to_expiry": "<days_to_expiry>",
"option_type": "<option_type>"
},
"name": "price_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | Underlying price. | |
| strike | Yes | Strike price. | |
| rate_pct | No | Risk-free rate in percent. | |
| option_type | Yes | call (CE) or put (PE). | |
| market_price | No | Option's market price, to solve for implied volatility. | |
| days_to_expiry | Yes | Calendar days until expiry (fractions allowed). | |
| volatility_pct | No | Annual volatility in percent, e.g. 14.5. | |
| dividend_yield_pct | No | Dividend yield in percent. |