Inputs
Instrument, side, entry, leverage, maintenance margin, closing fee and an optional stop.
Instrument, side, entry, leverage, maintenance margin, closing fee and an optional stop.
Liquidation price, probability of reaching it within 1h to 7d, stop-touch probability and the largest leverage with under 1% and 5% liquidation risk.
Touch probabilities include intrabar highs and lows. On 30 perpetuals the predicted probability differed from the observed touch frequency by 1.8 points on average at 1h, 1.0 at 4h and 2.5 at 24h (engine 1.0 check; 1.1 bounds the variance reaction to single outlier bars).
Isolated-margin formula; last price stands in for mark price. Tiered margin and cross-margin collateral are not modelled.
POST /labs/risk/liquidation {symbol, side, entry, leverage, maintenance_margin, closing_fee, stop, horizons}Minimum data: Two days of 5m bars.
Any account can run models within its plan quota; the standard liquidation map is free. Pricing →