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.
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>"
},
"name": "post_structure_pnl"
}
}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. |