What is checked
Liquidation checks a risk unit: positions that share collateral.
Liquidating one unit does not touch another. An isolated BTC position can be liquidated while your cross positions are untouched.
Net collateral is your balance plus unrealized P&L, less what open orders reserve. Maintenance margin comes from each position’s size tier (see Leverage). Above 100%, the unit is liquidated; at exactly 100%, it is not liquidated.
Example. One account, two units, maintenance rate 0.50%:
The isolated position is much closer to liquidation, and extra collateral in the account does not help it. Only adding margin to that isolated position does.
The check runs in every block, before any order in the block is matched. See Transaction sequencing.
The sequence
Recover in place — stops as soon as the unit is healthy
Taken over — the whole position leaves the unit
Net collateral falls strictly below the maintenance requirementEqual is not liquidated
1
Cancel every open order in the unitresting, conditional, take-profit, stop-loss
Reserved margin returns to the unit
2
Net off opposing positionshedge mode, cross margin
A long and a short in the same market cancel
3
The liquidation account takes overat the bankruptcy price, not via the order book
Your margin is used up; it absorbs the rest
4
Auto-deleveraging, instead of step 3only while ADL is active in the market
Profitable opposing positions are closed
What the protocol does
What it costs you
- Cancel orders. This frees the margin they reserve. For an isolated unit, orders in that market and side; for cross, all of them.
- Net off. In hedge mode under cross margin, a long and a short in the same market are closed against each other. Both legs pay the taker fee.
- Takeover. If the unit is still below maintenance, the whole position moves to the liquidation account, a protocol account, at the bankruptcy price: the price at which the unit’s margin is used up. For cross, the remaining balance moves too, even if negative. The liquidation account absorbs any loss beyond your margin.
- Auto-deleveraging. While ADL is active in the market, the position goes to ADL instead of step 3.
Auto-deleveraging
ADL keeps a large loss inside the market where it happened. It is not active in normal conditions and switches on in a market when the liquidation vault’s loss or net position exceeds a preset threshold, or by a manual activation due to an attack event. It switches off once the loss is reduced back to below 80% of its threshold and the position below 50% of its limit. Who is deleveraged. Positions on the other side of the failed position are ranked by a score anyone can recompute from public data: The highest score goes first. A small profit at high leverage can rank above a large profit at low leverage. Accounts with a value of zero or less are skipped, and in hedge mode each leg is ranked separately. At what price. Selected positions close at the failed position’s bankruptcy price, with no fee. You give up the part of your gain beyond that price. Whatever the ranked positions cannot absorb goes to the liquidation vault, a protocol account, at the same price. Your rank. Each position shows a five-level ADL indicator:
The indicator shows only the current status. To lower the probability of ADL, please reduce the position or its leverage.