Liquidation Price
liquidation_priceLiquidation calculator. mode=perp: isolated-margin long/short liquidation and bankruptcy price from entry price, leverage and maintenance margin rate (optionally size and fees), with distance to liquidation. mode=lending: health factor, liquidation price of the collateral and safe borrow headroom for Aave/Compound/Kamino/Morpho-style loans from collateral, debt and liquidation threshold. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/liquidation-price
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "liquidation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debt | No | lending: debt value in the same quote currency | |
| mode | No | perp | |
| side | No | perp: position side | long |
| size | No | perp: optional position size in base units (for margin and notional) | |
| feePct | No | perp: optional closing fee in percent of notional, reserved from margin | |
| leverage | No | perp: leverage (notional / margin) | |
| entryPrice | No | perp: entry price | |
| currentPrice | No | Optional current price for distance and status (default entryPrice / collateralPrice) | |
| collateralPrice | No | lending: collateral price | |
| collateralAmount | No | lending: units of collateral | |
| maintenanceMarginPct | No | perp: maintenance margin rate in percent | |
| liquidationThresholdPct | No | lending: liquidation threshold in percent (e.g. 82.5) |