Equity < Total Maintenance Margin
When this condition is met, the LiquidationEngine
begins the process of closing the user’s positions. All calculations and triggers are based on the Mark Price, not the last traded price. This ensures that liquidations are based on the fair, underlying value of the contract and are resistant to short-term volatility or price manipulation.
For a detailed breakdown of how Equity
is calculated for both Cross and Isolated margin modes, please refer to the Margining page.
The Liquidation Process
Bulk Exchange employs a dedicated, asynchronous background process called the LiquidationEngine
to manage liquidations safely and efficiently.
When an account is flagged for liquidation, the engine follows a precise, multi-step process:
CancelAllOrders
command to every matching engine where the user has resting limit orders. This action is crucial to prevent the user from increasing their position size or risk exposure during the liquidation event.reduce-only
market orders to the appropriate order book. These orders are specifically designed to only decrease the position’s size, ensuring they cannot accidentally open a new position in the opposite direction.reduce-only
market order.