Inputs that materially change the result
Liquidation depends on the complete position and account state. Entry price and leverage alone are not enough for an executable estimate.
AHAEM separates isolated margin from cross margin because a cross-margin position can draw on other balances, open orders and unrealized PnL. That information is not available from a single-position calculator.
- Long or short side and contract quantity.
- Entry price and leverage.
- Maintenance-margin rate for the exchange risk tier.
- Additional isolated collateral.
- Entry fees and funding already charged.
Isolated linear estimate
The model first derives initial margin and subtracts known costs. It then converts the remaining margin into a price distance from entry.
Maintenance-margin tiers and exchange-specific liquidation rules can create a different final trigger. Use the venue's risk calculator for an executable margin requirement.
Long ≈ (Entry − Available Margin ÷ Quantity) ÷ (1 − MMR) Short ≈ (Entry + Available Margin ÷ Quantity) ÷ (1 + MMR)
Why cross margin stays Unavailable
A portfolio-dependent liquidation price cannot be calculated from one position without inventing account equity, open orders and risk-tier assumptions.
AHAEM therefore returns Unavailable for cross margin instead of displaying a precise-looking but misleading number.