Skip to main content
A position is liquidated when its net collateral falls below its maintenance requirement. There is no warning. The protocol cancels its orders, nets off opposite legs, then moves the whole position to the liquidation account at the bankruptcy price, outside the order book. While auto-deleveraging (ADL) is active in that market, profitable positions on the other side take it instead.

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. margin ratio=maintenance marginnet collateral\text{margin ratio} = \frac{\text{maintenance margin}}{\text{net collateral}} 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
  1. Cancel orders. This frees the margin they reserve. For an isolated unit, orders in that market and side; for cross, all of them.
  2. 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.
  3. 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.
  4. Auto-deleveraging. While ADL is active in the market, the position goes to ADL instead of step 3.
The protocol stops after step 1 or 2 if the unit is healthy again, which is also why your orders can disappear in a sharp move. The liquidation penalty is a closing fee at the taker rate; see Fees.
Liquidation is not a stop-loss. Your margin is used up, and in a gap the price can move well past your liquidation price first. Watch your margin ratio: nothing warns you before it crosses 100%. See Risk disclosures.

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: score=profit % at mark×mark notionalaccount value\text{score} = \text{profit \% at mark} \times \frac{\text{mark notional}}{\text{account value}} 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.