- AlphaX DEX
- Account & Wallet
- On-Chain Meme Spot Trading
- Futures Trading
- Technology Architecture
- Terms of Use
1. Forced Liquidation
2. Forced Liquidation Conditions and Process
In AlphaX Perpetual Futures, the conditions for forced liquidation depend on Risk (risk ratio). When a position's Risk is ≥100%, the system will reduce or liquidate the position.
1. Risk
- For Isolated-Margin Mode: Risk = (Maintenance Margin + Trading Fees for Position Closing) / (Position Margin + Unrealized PnL)
- For Cross-Margin Mode: Risk = (Sum of Cross-Margin Positions' Maintenance Margin + Trading Fees for All Cross-Margin Position Closing) / (Balance - Combined Margins of Isolated-Margin Positions - Frozen Assets + Combined Unrealized PnL of Cross-Margin Positions)
2. Liquidation Process
2.1 Process for the Isolated Margin Mode
- The system freezes the position and restricts users from adjusting the position's margin, placing orders, etc.
- Then, the system liquidates the position according to the calculated bankruptcy price.
2.2 Process for the Cross Margin Mode
- The system freezes the margin account and prevents users from making deposits, withdrawals, transfers, placing orders, canceling orders, and other operations.
- The liquidation process stops if the Risk drops below 100% after all pending orders are canceled in the corresponding margin account.
- The liquidation process also halts if the risk drops below 100% after closing long and short positions of the same cryptocurrency in the margin account at current price to offset each other.
- In case the Risk remains ≥ 100% after executing the above steps, the system conducts forced liquidation for cross-margin positions at the bankruptcy price, sorting by unrealized PnL (positions with greater losses liquidated first) until the Risk drops below 100% or all positions of the margin account are liquidated.
3. Estimated Liquidation Price
3.1 Isolated Margin Mode
3.1.1 The price varies for long and short positions of the same contract.
3.1.2 Factors affecting the estimated liquidation price
- Users add margin to the open position or reduces the position margin.
- It's at the time of funding settlement, including receiving or paying funding fees.
3.2 Cross Margin Mode
3.2.1 Estimated liquidation price for same contracts in opposite directions
3.2.2 Factors affecting the estimated liquidation price
- Price fluctuations result in a change in the unrealized PnL, which causes a change in the collateral asset.
- Opening new positions involves the usage of account funds.
- Transferring funds into or out of the account.
- Deducting trading fees from position opening and closing.
- It's at the time of funding settlement, including receiving or paying funding fees.
4. Bankruptcy Price
5. Insurance Fund
- The source of Insurance Fund: In the case of forced liquidation, the system takes over the position based at the bankruptcy price and processes it in the market. Any profits generated thereby will be added to the Insurance Fund.
-
How is the Insurance Fund used: In the event of forced liquidation, the system takes over the position based on the bankruptcy price and processes it in the market. If the position is filled at a price inferior to the bankruptcy price or cannot be processed, losses incurred thereby will be covered by the Insurance Fund. When the Fund is depleted or insufficient, it will trigger Auto-Deleveraging (ADL).
6. Liquidation Examples
6.1 How Isolated-Margin Positions Are Liquidated
- Initial Margin = Average Position Price * Position Size / Leverage = 1,000 * 10 / 10 = 1,000 USDT (wherein the position size refers to the amount of the ETH bought)
- Unrealized PnL = (Market Price - Average Position Price) * Position Size = (904 - 1,000) * 10 = -960 USDT
- Risk = (Maintenance Margin + Trading Fees for Position Closing) / (Position Margin + Unrealized PnL) = (904*10*0.4% + 904*10*0.05%) / (1,000 - 960) = 101.70%
- Realized PnL = (Bankruptcy Price - Average Position Price) * Position Size = (900.4502251 - 1,000) * 10 = -995.4977489 USDT
- Trading Fees for Position Closing = Bankruptcy Price * Position Size * Trading Fee Rate = 900.4502251 * 10 * 0.05% = 4.502251126 USDT
- Profit = (Execution Price - Bankruptcy Price) * Position Size = (902 - 900.4502251) * 10 = 15.497749 USDT
- Deficit = (Execution Price - Bankruptcy Price) * Position Size = (900 - 900.4502251) * 10 = -4.502251 USDT
6.2 How Cross-Margin Positions Are Liquidated
- Balance = Deposits - Withdrawals + Total Realized PnL + Total Funding Fees - Total Trading Fees = 5,000 - 0 + 0 + 0 - (10,000*2*0.05% + 1,000*10*0.05%) = 4,985 USDT
- Unrealized PnL for BTC = (Market Price - Average Position Price) * Position Size = (8,004 - 10,000) * 2 = -3,992 USDT
- Unrealized PnL for ETH = (Market Price - Average Position Price) * Position Size = (912 - 1,000) * 10 = -880 USDT
- Cross-Margin Position Risk = (Sum of Cross-Margin Positions' Maintenance Margin + Trading Fees for All Cross-Margin Position Closing) / (Balance - Combined Margins of Isolated-Margin Positions - Frozen Assets + Combined Unrealized PnL of Cross-Margin Positions) = [(8,004*2*0.4% + 912*10*0.4%) + (8,004*2*0.05% + 912*10*0.05%)] / (4,985 - 0 - 0 - 3,992 - 880) = 100.07%