Support Center

3.7 Estimated Liquidation Price Calculation

July 24, 2020

CoinFLEX uses portfolio VaR to calculate risk. This means that instead of a concept of position margin, CoinFLEX looks at the portfolio margin of your account. This means the actual margin required is a function of all the positions and orders in your portfolio, compared to the collateral balance you have.

 

However, getting an estimated liquidation price is important for traders. Hence we have come up with an Estimated Liquidation Price calculation as a handy reference to help traders to know at what price their positions are at risk of liquidation:

 

Three important things to note about the estimated liquidation price:

 

  • It is just an estimate. This is a first-order approximation to the liquidation price for that particular contract position, assuming nothing else changes in the world, which may affect your margin and collateral balances.

     

  • It becomes more accurate as the 'mark price' gets closer to the liquidation price.

     

  • Often prices fall in unison. This could mean your positions could get liquidated at much higher price levels as other positions have also worsened.

     

Calculation of Estimated Liquidation Price – LINEAR account

%E8%9E%A2%E5%B9%95%E6%88%AA%E5%9C%96 2020 07 28 %E4%B8%8B%E5%8D%888.19.17 3.7 Estimated Liquidation Price Calculation

  • marketPrice is the current mark price
  • collateralBalance is the haircutted collateral balance of the account
  • portfolioVarMargin is calculated from the risk engine. liqMarginRatio = 50% = 0.5
  • position is the contract position. negative for short positions

 

This can be calculated for each position. Only 'marketPrice' and 'position' are specific to the contract.