calculate_option_payoff
Calculate option payoff, profit/loss, and breakeven at expiry for long or short call/put positions based on strike, premium, and spot price.
Instructions
Payoff, profit/loss and breakeven of an option leg at expiry. Use for 'if I buy/sell a call/put at strike X for premium Y, what is my P&L if the stock ends at Z', options breakeven, max profit/loss questions. option_type: call|put. position: long|short.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strike | Yes | ||
| premium | Yes | ||
| position | Yes | ||
| option_type | Yes | ||
| spot_at_expiry | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |