Perp Risk Engine

Calculates the probability of liquidation for a leveraged cryptocurrency futures position using Monte Carlo simulation over historical price data. Given a token, entry price, leverage, direction, and risk horizon, the endpoint automatically picks an appropriate historical lookback window and simulates thousands of price paths to estimate liquidation risk and the price level at which liquidation would occur.

GET
https://api.cambrian.org/api/v1/perp-risk-engine