Liquidation price (Hyperliquid formula)
liquidation_priceCalculate an isolated-margin liquidation price using Hyperliquid's formula; returns null when the position cannot be liquidated and requires the market's max leverage.
Instructions
Isolated-margin liquidation price with Hyperliquid's formula: maintenance margin is half the initial margin at the market's max leverage. Returns null when the position cannot be liquidated. Offline; get max_leverage from the venue.
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": {
"entry": "<entry>",
"notional": "<notional>",
"leverage": "<leverage>",
"max_leverage": "<max_leverage>",
"side": "<side>"
},
"name": "liquidation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| entry | Yes | Entry price. | |
| leverage | Yes | Leverage used. | |
| notional | Yes | Position size in USD. | |
| max_leverage | Yes | The market's max leverage (e.g. 40 for BTC on Hyperliquid). |