Chance of touching a liquidation price
liquidation_riskThe probability a perp position touches its liquidation price within N hours (default 24), from Yang-Zhang and Garman-Klass volatility on the last week of hourly candles and a closed-form barrier formula, plus the most leverage that keeps that chance at targetPct (default 5%). Give the liquidation price, or leverage to work it out from the entry and the venue's maintenance margin.
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": {
"symbol": "<symbol>",
"side": "<side>"
},
"name": "liquidation_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| entry | No | ||
| hours | No | ||
| symbol | Yes | ||
| leverage | No | ||
| targetPct | No | ||
| liquidationPrice | No |