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).
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) |