The handling of liquidation orders is a critical process in perpetual and delivery futures contracts. To enhance the execution speed of these orders without negatively impacting market liquidity, exchanges implement specific mechanisms. This article explains the key concepts, algorithms, and post-liquidation procedures involved.
Key Concepts in Liquidation
Before delving into the mechanics, it's essential to understand the foundational terminology.
Liquidation Trigger Price
This is the mark price at which a user's margin ratio becomes too low, triggering the automatic liquidation of their position to prevent further losses.
Bankruptcy Price
This is the price level at which a user's margin ratio is completely depleted, meaning their initial margin and any additional funds have been lost.
Liquidation Order Price
Once a position is liquidated, the exchange's liquidation engine takes over and places an order in the market. This is the price at which that order is initially entered.
Liquidation Execution Price
This is the actual price at which the liquidation order is filled in the market, which can differ from the initial order price due to market conditions.
The Algorithm Behind Liquidation Order Pricing
The primary goal is to manage liquidations efficiently to minimize market disruption.
Objectives of the Algorithm
The algorithm is designed to calculate a more rational entry price for liquidation orders. It considers multiple real-time market factors to achieve two main goals: reducing the negative impact on the market that would occur if all orders were simply set at the bankruptcy price, and accelerating the order execution speed to mitigate systemic risk.
How the Logic Works
When a position is liquidated, the system does not automatically place an order at the bankruptcy price. Instead, the liquidation engine performs a complex analysis. It evaluates the current market depth of the contract, the basis (the difference between the futures price and the spot price), and the current mark price. Based on this analysis, it calculates an optimal price designed to get the order filled as quickly as possible while also aiming to generate a surplus from the liquidation, which can help cover losses. For a deeper dive into how real-time market analytics can influence such systems, you can explore more strategies here.
Checking Liquidation Orders and Unrealized Losses
The liquidation process can sometimes result in outcomes that need to be tracked and accounted for.
Understanding Price Adjustments and Losses
During the price adjustment process, some executed liquidation orders may fill at a price worse than the bankruptcy price. For long positions, this means a price lower than the bankruptcy price; for short positions, a price higher. The difference between the bankruptcy price and this actual execution price is recorded as an "unrealized loss" on the filled liquidation order list.
Settlement of Losses
These unrealized losses from price-adjusted liquidation orders are settled by being offset against the exchange's risk reserve fund. This settlement occurs alongside the handling of losses from any liquidation orders that failed to execute.
Viewing Your Data
Users can review the total amount of unrealized losses attributed to their account on the liquidation orders page. The total is calculated as the sum of unrealized losses from filled orders plus those from unfilled orders.
Frequently Asked Questions
What triggers a liquidation in futures trading?
A liquidation is triggered when the mark price moves against your position to a point where your margin ratio falls below the maintenance margin requirement. This is a risk management measure to prevent your account balance from going negative.
How is the liquidation order price determined?
The price is not simply the bankruptcy price. The exchange's engine calculates it using an algorithm that considers current market depth, basis, and the mark price. The goal is to execute the order quickly while minimizing market impact and potentially generating a surplus.
What is the difference between bankruptcy price and liquidation execution price?
The bankruptcy price is where your equity is zero. The liquidation execution price is the actual price your order is filled at in the market, which can be better or worse than the bankruptcy price, leading to either a surplus or an unrealized loss.
What happens if the liquidation order isn't filled?
If a liquidation order fails to execute, the associated unrealized loss is still calculated based on the bankruptcy price and is also covered by the exchange's risk reserve fund during the settlement process.
Where can I see my liquidation history and any associated losses?
You can review all details of your liquidated positions, including the calculated unrealized losses, in the dedicated liquidation orders section of your trading platform.
How does the risk reserve fund protect traders?
The fund acts as a buffer to absorb unrealized losses from liquidations that occur at adverse prices. This mechanism helps maintain overall system stability and protects traders from shared socialized losses in extreme market conditions. For those looking to understand risk management tools better, you can get advanced methods here.