Calculate position with P/L graph
calculate_positionEverything probability_of_profit returns, plus the profit/loss graph data the optionsprofitcalculator.com calculator shows: P/L in dollars across a grid of stock prices and dates up to the earliest expiry. Use it to chart a position or to see how profit changes over time. This tool has no market data: give the current stock price and the price of every option leg (from the user or another source). Implied volatility is worked out from each price. calculatorUrl opens the same position and graph in the calculator on optionsprofitcalculator.com.
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": {
"underlyingPrice": "<underlyingPrice>",
"legs": "<legs>"
},
"name": "calculate_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iv30 | No | 30-day implied volatility, whole percent, used for the probability. Omit to use the average implied volatility of the option legs. | |
| legs | Yes | ||
| symbol | No | Ticker symbol, e.g. AAPL | |
| ivChange | No | Shift all implied volatilities by this percent, e.g. -10 | |
| priceMax | No | Highest stock price on the graph (default: automatic) | |
| priceMin | No | Lowest stock price on the graph (default: automatic) | |
| underlyingPrice | Yes | Current stock price |