position_calculate
Risk-first position sizing with quantity, notional, margin, effective leverage, fees, funding, breakeven, liquidation estimate, target R multiples and warnings. Use position_plan_on_chart instead when the user should see the plan on the chart.
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": {
"side": "<side>",
"equity": "<equity>",
"riskPercent": "<riskPercent>",
"entry": "<entry>",
"stop": "<stop>"
},
"name": "position_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| stop | Yes | ||
| entry | Yes | ||
| equity | Yes | Account equity in quote currency. | |
| feeBps | No | Fee per side in basis points. Default 4. | |
| targets | No | Take-profit prices and the percentage closed at each. Allocations should total 100. | |
| leverage | No | Selected venue leverage. Default 1. | |
| fundingRate | No | Funding per settlement as a fraction, e.g. 0.0001. | |
| riskPercent | Yes | Equity risked if the stop fills, in percent. | |
| holdingHours | No | Expected holding time for the funding estimate. | |
| fundingPerDay | No | Funding settlements per day. Default 3. | |
| maintenanceMarginRate | No | Fraction used for approximate liquidation. Default 0.005. |