Liquidation price and stop check
liquidation_priceCalculates the liquidation price of an isolated-margin crypto futures position (long or short) from entry price and leverage, the distance to it, and, if a stop-loss is given, whether liquidation would come before the stop and the highest leverage the stop allows. Pure calculation, no market data.
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 direction: long (profits when price rises) or short (profits when price falls). | |
| stop | No | Optional stop-loss price. If given, the answer says whether liquidation comes before the stop. | |
| entry | Yes | Entry price of the position, in the quote currency (e.g. USD). | |
| leverage | Yes | Leverage multiple, e.g. 10 for 10x. Isolated margin is assumed. | |
| maintenance_margin_pct | No | Maintenance margin in percent. Default 0.5. |