Liquidation Price
Last updated
Last updated
Because of the conditions of liquidation, when liquidation occurs, only the maintenance margin and fee remain for the equity of the position.
It can also be seen that when a liquidation occurs, the 'margin rate' of the position is only enough to (maintenance margin rate + liquidation fee rate).
Assuming that the position equity at this time is E, the position is P, the position quantity is Q, the current mark price is MP, the current tiered maintenance margin rate is MMR, the liquidation fee rate is Fee, and the liquidation price is X, then there is:
Current equity - loss from now to liquidation = maintenance margin + fee
E - P * (MP - X) = (MMR + Fee) * Q * X
If it is a cross position, the maintenance margin required by other positions should be subtracted:
Current equity - loss from now to liquidation - maintenance margin and commission fee of other positions = maintenance margin of this position + fee
E - P * (MP - X) - SUM((MMR_n + Fee_n) * Q_n * MP_n) = (MMR + Fee) * Q * X
Solve X to get the liquidation price calculation formula!
Liquidation price = (isolated equity - position quantity * mark price) / ((maintenance margin rate + fee rate - 1) * position quantity )
Liquidation price = (isolated equity + position quantity * mark price) / ((maintenance margin rate + fee rate + 1) * position quantity )
Liquidation price = (total cross equity - position quantity * mark price - SUM other cross margin contracts (position quantity * mark price * (maintenance margin rate + fee rate)) / ((maintenance margin rate + fee rate - 1 )*position quantity)
Liquidation price = (total position equity + position quantity * mark price - SUM other cross margin contract (position quantity * mark price * (maintenance margin rate + fee rate)) / ((maintenance margin rate + fee rate + 1 )*positions quantity)
The maintenance margin rate is the maintenance margin rate of the position where the position nominal value (position quantity * mark price) is located.
Fee = Max (taker fee rate, maker fee rate)