Structure Greeks
post_structure_greeksAggregate Black-Scholes position greeks (delta, gamma, theta, vega, rho, vanna, charm) for a multi-leg options structure. Pure math — pass legs as JSON. Different body than Structure P&L: needs a top-level spot and per-leg expiry+impliedVol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | JSON. Top-level `spot`(>0) required; each leg needs action(buy|sell), type(call|put), strike, expiry(YYYY-MM-DD), impliedVol(decimal), quantity. e.g. {"legs":[{"action":"buy","type":"call","strike":120,"expiry":"2026-07-17","impliedVol":0.28,"quantity":1}],"spot":122.5}. See /v1/structures/greeks in docs/api.md. | |
| apiKey | No | FlashAlpha API key. Omit when calling via /mcp-oauth (OAuth flow); required on /mcp. |