**What is liquidation****？**

Margin ratio is an indicator used to estimate the users’ assets risk. When margin ratio less than or equal to 0%, forced liquidation will be triggered.

Margin Ratio = ( Equity Balance / Used Margin ) * 100% - Adjustment Factor

Note: Used Margin = Position Margin + Frozen Margin

**What’s adjustment factor?**

Adjustment Factor is used to prevent the system's margin call losses. Huobi DM uses tiered adjustment factor mechanism which will go alive officially after delivery and settlement on 16:00, July 19, 2019(GMT+8). The adjustment factor is divided into 3 tiers according to net position. The higher the net position and tier go, the more risk of the account will become.

Example:

Taking the adjustment factors of BTC contract as an example. According to the table below, if a use has 100 BTC in open interest, the adjustment factor for 10 leverage multiple, 20 leverage multiple and 5 leverage multiple is 8%, 15% and 3% correspondingly.

** What is Liquidation Price?**

The liquidation price is the estimated market price when the margin ratio is equal to or less than 0. Please note that this price is for reference only. The real-time liquidation price should refer to the last order price when the margin ration goes to 0.

**What’s EMA?**

An exponential moving average (EMA) is a type of moving average (MA) that places a greater weight and significance on the most recent price movement.

To reduce the risk of forced liquidation, Huobi DM uses EMA (Exponential Moving Average) as another reference price in liquidation mechanism. To determine whether liquidation is triggered or not, the system will refer to the margin ratios calculated according to both the last price and the EMA. When the two margin ratios both go to or below 0, liquidation will be triggered. By referring to both most recent EMA and last price for liquidation, it can help users to avoid liquidations due to abnormal market fluctuations in uncontrollable situations.

Formula:

The most recent EMA = ( the latest market price – the last EMA ) * smoothing factor + the last EMA

- EMA will be calculated in every 5 seconds;
- the smoothing factor = 1 / 3

__For example:__

Assuming P1 = 8000; P2 = 7988; P3 = 7981, then:

- EMA1 = P1 = 8000；
- EMA2 = ( P2 - EMA1 ) * Smoothing Factor + EMA1 = ( 7988 – 8000 ) * 1 / 3 + 8000 = 7996；
- EMA3 = ( P3 - EMA2 ) * Smoothing Factor + EMA2 = ( 7981 – 7996 ) * 1 / 3 + 7996 = 7991；

……

Pn refers to the most recent EMA at the nth period.

**What is liquidated order price?**

The liquidation price is the market price for reference when the margin ratio is equal to or less than 0%. When the margin ratio reaches to or below 0%, liquidation will be triggered and the trading system will take over the positions with a limit order price. Since the taken-over positions won’t go through the match system, the price of the taken-over positions will not display on the market (K-line chart). Please note that the liquidated order price is different from the liquidation price. For liquidated order details, you can go to Huobi DM APP and click [ ? ] or go to web page and click “Details” in “Order History”.

**Example on APP:**

** **

**Example on web page:**

**Details of liquidated orders:**

**Examples on the concept above:**

Xiao Ming has 2BTC in account equity. He opened long 1000-lot BTC quarterly contract at the price of 8000USD/BTC(100USD/lot). Assuming there was 10X in leverage, 12% in adjustment factor and no corresponding transaction fees as well, what will happen to Xiao Ming’s positions when the last BTC quarterly contract reaches 6979.31 USD?

Let’s have a look the calculation for different elements.

**Unrealized Profit and Losses**

- According to the order direction-open long, the formula is Unrealized P/L for long position= ( 1 / Average position price – 1 / last order price ) * order quantity * contract face value
- Therefore, the calculation for Xiao Ming’s Unrealized P/L is: ( 1 / 8000 - 1 / 6979.31 ) * 1000 * 100 = -1.828BTC
- In this case, when the price of BTC quarterly contract reaches 6979.31 USD, Xiao Ming’s unrealized profit and losses is -1.828BTC

**Xiao Ming’s account equity**

- Formula: Equity = Deposit + realized profits / losses + unrealized profits / losses
- Xiao Ming’s equity is 2 + 0 + ( -1.8280 ) = 0.172BTC
- Therefore, when the price of BTC quarterly contract reaches 6979.31 USD, Xiao Ming’s account equity is 0.172BTC

*Position Margin*

- Formula: Position Margin = ( Contract Value * Position Quantity ) / Last Order Price / Leverage
- Xiao Ming’s position Margin is ( 100 * 1000 ) / 6979.31 / 10 = 1.4328BTC
- Therefore, when price of BTC quarterly contract reaches 6979.31, Xiao Ming’s current position margin is 1.4328BTCs

*Is liquidation triggered?*

- Formula: Margin Ratio = (Equity Balance / Used Margin ) * 100% - Adjustment Factor
- Xiao Ming’s margin ratio is ( 0.172 / 1.4328 ) * 100% - 12% = 0
- In this case, the EMA price according the EMA formula is 6979.25
- As explained above, when the margin ratios calculated according to both the last price and the EMA go to or below 0, Xiao Ming’s order will be liquidated.
- Therefore, Xiao Ming’s order is liquidated when the price of BTC quarterly contract reaches 6979.31 USD

*What will happen after liquidation?*

- As mentioned above, when liquidation is triggered, the trading system will take over the order with a limit order price when the account equity goes to 0.
- In this case, trade system will take over Xiao Ming’s order with limit order price when his account equity goes to 0. The limit order price is also Xiao Ming’s liquidated order price.
- The liquidated price: assuming the liquidated price is X, according to the formula above, the calculation of the liquidated order price is ( 1 / 8000 - 1 / x ) * 1000 * 100 = -2BTC
- Therefore, X= 6896.55
- Therefore, the liquidated order price of Xiao Ming’s order is 6896.55USD when the account equity goes to 0. The 6896.55USD is also the position price of the taken-over orders which will not display on market chart.

Please note that the information above is for example reference only. Please refer to the official announcement on Huobi DM for timely updates.

**Insurance fund**

Insurance fund is set up to cover the societal losses (i.e. losses attributed to unfilled liquidated orders) or to settle incidents in contracts trading.

For each digital asset contract, there is a corresponding insurance fund, and the same digital asset contracts of different periods share one insurance fund. For example, weekly, bi-weekly and quarterly BTC contracts all share the same insurance fund of BTC contracts.

The sources of insurance fund are mainly from Huobi DM and the premiums after forced liquidations. Once forced liquidation triggered, the system would take over users’ positions and close them by placing orders on order book. The premiums generated by liquidated positions will be injected into corresponding insurance fund. In terms of initial trade or under special situations, system will manually transfer the premiums (generated by liquidated positions) into exchange account, supplementing insurance fund.

Use of insurance fund: During weekly settlement and delivery, if there were margin call losses attributed to unfilled liquidated orders, system would first use insurance fund to meet the losses. Clawbacks will only occur if the insurance fund are not enough to cover the system's total margin call losses.

**Clawback**

When the market fluctuates severely, the user is subjected to liquidation, and the transaction cannot be concluded at the liquidation price, resulting in loss greater than the margin, the platform will adopt the “clawback” system. Clawbacks will only occur if the insurance fund does not have enough funds to cover the system's total margin call losses.

**Full account clawback system**

Huobi DM Contracts uses a "full account clawback" system to calculate the clawback rate. The system's margin call losses from all three contracts (like weekly, bi weekly and quarterly contracts) will merged and clawbacks will be calculated according to each user's entire account profits, instead of calculating each contract's margin call losses and clawbacks separately. Only users that have a net profit across all three contracts for that week will be subjected to clawbacks.

Clawback coefficient = System's losses / Profit across all contracts

__For example:__

*The system's total margin call losses = weekly losses + bi-weekly losses + quarterly losses = 0BTC-100BTC-20BTC = -120BTC*

*If system's losses + insurance fund >= 0, then clawback rate = 0*

*If system's losses + insurance fund <0, then clawback rate = (system losses + insurance fund) / net profit across all contracts*

__For example:__

*System's losses: -120BTC*

*Insurance fund = 100BTC*

*Profit across all contracts = 40,0000BTC*

*Clawback rate =| (-120BTC+100BTC) / 40,0000BTC| = 0.005%*

Clawback amount for the users who gained net profit of all contracts = (profit from weekly contract + profit from bi-weekly contract + profit from quarterly contract) * clawback rate.

The clawback amount will be deducted from the profit automatically.

If a user has a total profit of 2 BTC for the weekly, bi-weekly and quarterly contracts, then the amount needs to be shared is 2*0.005%=0.0001 BTC.

Join in us

WeChat：dm19166 ，dm19416

QQ Group：936093939

Telegram：https://t.me/huobidmofficial

## Comments

0 comments

Article is closed for comments.