options_payoff-diagram
Generate data points for plotting multi-leg options payoff diagrams, including breakevens and max profit/loss.
Instructions
Multi-leg options payoff diagram data generation.
Use when you need payoff/P&L data points for plotting an options strategy. Provide legs with strike, premium, quantity, and type. Returns: array of price/payoff pairs for charting, plus key metrics (breakevens, max profit/loss).
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": {
"legs": "<legs>",
"spot": "<spot>"
},
"name": "options_payoff-diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | Array of option legs | |
| spot | Yes | Current spot price | |
| points | No | Number of evaluation points | |
| price_range_pct | No | Price range around spot for payoff calculation (percentage) |