The mark price and funding rate are closely interconnected. We recommend thoroughly reading this document to fully understand the mechanics of perpetual contract trading.
Importance of Mark Price
Unrealized profit and loss (PnL) is a primary cause of forced liquidations. With perpetual contracts offering a maximum leverage of 200x, accurately calculating unrealized PnL is critical to avoiding unnecessary liquidations. The mark price, derived from the price index, serves as the foundation for calculating unrealized PnL and reflects the contract’s intrinsic value.
Price Index Calculation
The price index is a weighted average of prices from major spot markets, based on their trading volumes. Referenced exchanges include: Bitfinex, Binance, Huobi, OKEx, Bittrex, HitBTC.
To ensure price index stability, we implement the following safeguards:
-
Single Price Source Deviation: If an exchange’s latest price deviates by more than 5% from the median price of all sources, its price weight is set to zero.
-
Multiple Price Source Deviation: If more than one exchange’s price deviates by over 5% from the median, the median price replaces the weighted average as the price index.
-
Exchange Connectivity Issues: If an exchange’s data source updates within the last 10 seconds, we use the latest data for the price index. If no update occurs, the exchange’s weight is set to zero.
💡The price index represents a fair spot price, used to calculate the mark price and, subsequently, unrealized PnL. Note that actual PnL is determined by the market price at the time of position closure.
Mark Price Calculation
The mark price is updated every 8 hours, in sync with funding rate settlements. The calculation is as follows:
💡 The 1-minute basis is the average of [(Bid 1 price + Ask 1 price) ÷ 2 - Price index] over the past minute, calculated every second (60 data points).
Example:
Calculation:
💡Compared to the volatile futures price, the mark price provides a stable reflection of the contract’s intrinsic value, helping to prevent unnecessary liquidations and market manipulation.
Unrealized Profit and Loss Calculation
In USD terms, unrealized PnL is calculated as follows:
Hence,
💡Withdrawals are possible as long as the margin balance exceeds (initial margin + borrowed amount).
For more details, please refer to「How to Calculate Profit and Losses & PnL%?」
⚠️In case of discrepancies in translations, the English version shall prevail.
Take Action Now
Contact Us
Disclaimer