Position risk calculator
position_risk_calcLiquidation price, distance to liquidation, margin, round-trip fees, funding cost and break-even move for a leveraged long/short. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits.
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": {
"entryPrice": "<entryPrice>",
"leverage": "<leverage>",
"side": "<side>"
},
"name": "position_risk_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | long | short | |
| feeBps | No | taker fee bps per side (default 5) | |
| sizeUsd | No | position size USD (default 1000) | |
| leverage | Yes | 1-200 | |
| holdHours | No | default 24 | |
| entryPrice | Yes | entry price | |
| fundingRatePct8h | No | funding % per 8h | |
| maintenanceMarginPct | No | default 0.5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||