bs_option_greeks
Compute exact Black-Scholes European option price and Greeks (Delta, Gamma, Vega, Theta, Rho) from volatility, OR solve Implied Volatility via safeguarded Newton-Raphson/Bisection from market_price.
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>",
"risk_free_rate": "<risk_free_rate>",
"option_type": "<option_type>"
},
"name": "bs_option_greeks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | ||
| strike | Yes | ||
| volatility | No | Annualized volatility as decimal (e.g., 0.25 for 25%). Specify either volatility or market_price. | |
| option_type | Yes | ||
| market_price | No | Observed option price for Implied Volatility solving. Specify either volatility or market_price. | |
| dividend_yield | No | Optional continuous dividend/staking yield (default 0). | |
| risk_free_rate | Yes | Annualized continuously compounded risk-free rate (e.g., 0.05 for 5%). | |
| time_to_expiry_years | Yes |