When a trader’s position is liquidated, the position is taken over by the BitMEX liquidation engine. If the liquidation cannot be filled by the time the mark price reaches the bankruptcy price, the ADL system automatically deleverages opposing traders’ positions by profit and leverage priority.
The price at which a traders’ positions are closed out is the bankruptcy price of the initial liquidated order.
At all times, your position in the queue is shown by an indicator. This indicator represents your priority in the queue in 20% increments:
In the above example, all “lights” are lit, which would mean your position is in the top percentile. In the case of a liquidation that is not able to be caught in the market, you may be deleveraged.
Note that this is a rare event, and the Insurance Fund is used in almost all cases to prevent it.
If you are deleveraged, you will be sent a notification.
Deleveraging priority is calculated by profit and leverage. More profitable and higher leveraged traders are deleveraged first.
The ranking calculation is as follows:
Ranking = PNL Percentage * Effective Leverage (if PNL percentage > 0) = PNL Percentage / Effective Leverage (if PNL percentage < 0) where Effective Leverage = abs(Mark Value) / (Mark Value - Bankrupt Value) PNL percentage = (Mark Price - Avg Entry Price) / abs(Avg Entry Price) Mark Value = Position Value at Mark Price Bankrupt Value = Position Value at Bankruptcy Price Avg Entry Price = Average Price of Position Entry
The system splits these positions by longs and shorts and ranks the positions from highest to lowest.
Further information and examples of the Auto-Deleveraging process are available.