Liquidation price calculator
liquidation_priceLiquidation price calculator for a leveraged perpetual-futures position (isolated margin, linear contracts): liquidation price, how far the price can move before it, margin and notional, and the funding cost per day at a funding rate you give. Arithmetic, not advice. US$0.002 per call; 3 free calls a day.
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>",
"entry": "<entry>",
"leverage": "<leverage>"
},
"name": "liquidation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Position side. | |
| entry | Yes | Entry price. | |
| leverage | Yes | 1-200. | |
| size_usd | No | Position notional in US dollars (default 1000). | |
| funding_hourly | No | Optional hourly funding rate, e.g. 0.0000125, for the daily funding cost. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paid | No | ||
| side | No | ||
| entry | No | ||
| trial | No | ||
| message | No | ||
| leverage | No | ||
| margin_usd | No | ||
| notional_usd | No | ||
| pay_per_call | No | ||
| liquidation_price | No | ||
| funding_per_day_usd | No | ||
| funding_rate_hourly | No | ||
| move_to_liquidation_pct | No |