perps liquidation price
perps_liquidation_priceLiquidation price for a leveraged perp position: from entry, leverage, side and the maintenance margin rate, get the liquidation level, how far away it is in percent, margin posted and the loss at liquidation, plus a table of the same position at 2x to 100x. Add extra_margin to see how topping up moves it. Isolated margin, USD-margined contracts (Hyperliquid, Binance, Bybit, dYdX style). $0.002. Costs $0.002 USDC per call (x402).
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>",
"leverage": "<leverage>"
},
"name": "perps_liquidation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | long (default) or short | |
| size | No | units, default 1 | |
| entry | Yes | ||
| leverage | Yes | ||
| extra_margin | No | added collateral in USD | |
| maintenance_margin_percent | No | default 0.5 |