calculate_payoff
Calculate option payoff and P&L at expiry across various underlying prices by defining legs, spot price, and lot size to evaluate strategy outcomes.
Instructions
Calculate the payoff/P&L at expiry for given option legs at various underlying prices.
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>",
"spot_price": "<spot_price>",
"lot_size": "<lot_size>"
},
"name": "calculate_payoff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| lot_size | Yes | Lot size | |
| spot_price | Yes | Current spot price for range calculation |