Structure P&L
post_structure_pnlAt-expiry P&L curve and breakevens for a multi-leg options structure (vertical spread, iron condor, straddle, butterfly, calendar). Pure math, no market lookup — pass the legs as JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | JSON. Each leg needs action(buy|sell), type(call|put), strike, premium, quantity. e.g. {"legs":[{"action":"buy","type":"call","strike":120,"premium":2.5,"quantity":1}],"minUnderlying":100,"maxUnderlying":140}. NOTE: uses per-leg `premium` (not impliedVol/spot). See /v1/structures/pnl in docs/api.md. | |
| apiKey | No | FlashAlpha API key. Omit when calling via /mcp-oauth (OAuth flow); required on /mcp. |