APX Finance
  • 🚀What is APX Finance?
  • 🌙Brand Logo & Guidelines
  • Welcome
    • 📄$APX Token & Contracts
      • ⚡Allocation
      • 🔥Token Burn
      • 💲Tax
    • 💎ALP Liquidity Pool
      • 💡How to buy ALP?
      • 💡How to stake/unstake?
      • 💡How to sell?
      • 💡Fees for buying and selling ALP
      • ‼️Risk
    • ⛓️Trading on V2
      • ❓How does it work?
      • ⬇️How to interact directly with the contract
      • 🤝Powered by Pyth Oracle and Chainlink
      • 🐸Degen Trading Mode
        • 💰Dynamic close fee for Degen Mode
      • 🎰V2 Fees & Slippage
      • 💢MAD perpetual contracts
        • 💢MADBTCUSD
          • Index Details
        • 💢MADETHUSD
          • Index Details
        • 💢MADCAKEUSD
          • Index Details
      • 😎Dumb Mode
        • How to place orders
      • 📃DEGEN Inscriptions Airdrop
      • 📈Forex
      • 👥APX V2 Referral
      • 📖APX Testnet Walk through [Inactive]
      • 💡FAQ
        • 💡Connect wallet
        • 💡Opening a position
        • 💡How to place stop orders?
        • 💡Position management
        • 💡One click close all position feature
        • 💡Order Types
      • 📹Video Tutorials (V2)
    • 👋Trading on V1
      • 📡Pre-Launch Markets
        • BLAST Pre-Launch Futures
      • 💰Wallet Connection
      • 💡How to start trading on APX V1?
        • 💸Deposit & Withdrawal
        • 🪜Margin Mode & Leverage
        • ⬆️Position Mode
        • 💻Order Types
          • TP/SL orders (Strategy Order)
          • Trailing Stop Order
        • 🛑Closing Positions
        • 📈Grid Trading
          • 👾Set-up Your Grid Trading Strategy
          • 👾Futures Grid Trading Auto Parameters Guide
          • 👾Long/Short Grid Trading introduction
        • 💡Lite Mode
      • ❓FAQ
        • ❓Multi-Assets Mode
        • ❓How to Adjust the Margin Balance in Cross/Isolated Margin Modes
        • ❓How to Calculate the Cost of Opening a USDⓈ-M Perpetual Futures Contract Position
        • ❓Mark Price in USDⓈ-M Perpetual Futures Contracts
        • ❓Funding Rate
        • ❓Auto-Deleveraging (ADL)
        • ❓APX Futures Liquidation Protocol
        • ❓Delisting Process of A Futures Contract
        • ❓APX DEX Referral Guidelines
        • ❓How to Whitelist APX Emails?
      • 📹Video Tutorial (V1)
  • Features & Tutorials
    • ℹ️General
      • 💡What is Gas Fee?
      • 💡How to switch network?
      • 💡How to change language
      • 💡How to bind your social media account to receive notifications
    • 🖥️All about APX Web
      • 💡How to Connect Your Wallet? (Web version)
      • 💡How to find your DEX UID? (Web)
    • ⛓️Permissionless DEX Engine
      • Features and benefits of permissionless solution
      • FAQs
    • 👾Trading
      • 💡How to Buy Crypto on APX DEX via BANXA
      • 💡How to check your balance (V1)
      • 💡How to use Multi-Assets Mode
      • 💡How-to Guide: Use BONUSUSD to trade crypto futures on APX V1
  • Programs
    • 📞V2 ARB Incentive Season (Trading)
    • 📣V2 ARB Incentive Season (Weekly Bonus, ALP Staking)
    • 💰$100,000 Binance Web3 Wallet Trading Campaign Tutorial
    • 🪂Strategic Partnership with Lista DAO - Cosmic Adventure Challenge
    • 📏V2 Trading Rewards
    • ⛏️Retroactive Mining Rewards
  • APX DAO
    • 👨‍🚀How To Participate?
    • 📫DAO Staking
      • 🎫Get Voting Power
      • ⚡Staking Rewards & Repurchased Tokens
      • ⚡Trading Benefits
      • ⚡Penalty Fee
    • 🍀Governance
      • 🌡️Temperature Check
      • 🤚Standards for raising DAO proposals
  • API
    • 🖱️Create API
    • 💾API Documentation
  • Community
    • 🔗Social Media & Communities
  • About Us
    • 🗺️Roadmap
      • 🍁2023 Roadmap
      • 🍁2022 Milestones
      • 🍁2021-2022 Roadmap
    • 🔖Audit Reports
    • APX Team
    • Privacy Policy
    • Terms of Use
    • Restriction
Powered by GitBook
On this page
  1. Welcome
  2. Trading on V1
  3. FAQ

Mark Price in USDⓈ-M Perpetual Futures Contracts

PreviousHow to Calculate the Cost of Opening a USDⓈ-M Perpetual Futures Contract PositionNextFunding Rate

Last updated 1 year ago

The way the Mark Price is calculated is closely correlated with the funding rate and vice versa. We strongly recommend that you carefully read the two articles on “Mark Price” and “Funding Rate” to gain a full understanding of how the Futures trading system works.

As Unrealized PnL is the primary driver of liquidations, it’s important to ensure that Unrealized PnL is accurately calculated in order to avoid unnecessary liquidations. The core basis of a Perpetual Contract is the intrinsic or “true” value of the Contract. The “Price Index,” which is the primary component of the Mark Price, is an average of the prices on the major mainstream markets.

The Price Index is a composite index derived from a basket of prices from various major Spot Market exchanges, weighted by their respective trading volumes. Referenced trading markets include: Binance, Huobi, HitBTC, Gate.io, Bitmax, Poloniex, OKX, KuCoin, Ascendex, MEXC, Bitfinex, Coinbase, Bitstamp, Kraken and Bybit.

Click to view the .

We also take additional protective measures to avoid poor market performance caused by interruptions in Spot Market prices and connectivity problems. These protective measures are as follows:

  • Single Price Source Deviation:

When the Last Price of a particular exchange deviates more than 5% from the Median Price of all price sources, the price weight of that exchange will be set to zero.

  • Multi Price Source Deviation:

If the Last Price of more than 1 exchange shows a deviation greater than 5%, the Median Price of all price sources will be used as the index value instead of the weighted average.

  • Exchange Connectivity Problems:

If we can’t access the data feed for an exchange that has had trades updated in the last 5 minutes, we can use price data from the last result to calculate the Price Index.

  • If the trade data for an exchange has not been updated for 10 seconds, the weight of this exchange will be set to zero when calculating the weighted average.

  • Last Trade Price Protection:

When the “Price Index” and “Mark Price” matching system is unable to secure a stable and reliable source of reference data, it impacts the Price Index for contracts with a single Price Index (i.e., the Price Index will not change). In this case, we use the “Last Trade Price Protection” mechanism to update the Mark Price until the system is back to normal. The “Last Trade Price Protection” mechanism is a way of determining the Mark Price by putting a specified limit on the last trade price of the contract itself, thereby temporarily changing the reference price for the contract. This allows the matching system to calculate Unrealized PnL and the Liquidation Level, thereby avoiding unnecessary liquidation.

You can think of the Price Index as a fair Spot Price. We use this to calculate the Mark Price, which is then used to calculate Unrealized PnL for each contract. Note that Realized PnL for the account is based on the Market Price of the trade at the time the position is closed.

The Mark Price formula for Perpetual Futures Contracts is as follows:

Mark Price = Median × (Price 1 , Price 2 , Contract Price)

Price 1 = Price Index × (1 + Funding Rate × (Time to Next Funding Rate (h)/8 ))

Price 2 = Price Index + Moving Average (5-min basis)

*Moving Average (5-min basis) = Moving Average (( Bid 1 + Ask 1) / 2 — Price Index), sampled every minute in 5-minute intervals.

*Median: The middle price out of Price 1, Price 2, and the Contract Price is taken as the median. For example, if Price 1 < Price 2 < Contract Price, then Price 2 is taken as the Mark Price.

Please note that APX will take additional protective measures when there are large deviations between the Spot Price and the Mark Price due to extreme market conditions or deviations in price sources. In such cases, Price 2 will be taken directly as the Mark Price.

The Mark Price is a better estimate of the inherent value of a contract compared to Perpetual Futures Contract prices, which have large short-term price fluctuations. We use this Mark Price to avoid unnecessary liquidations for our traders and to prevent market manipulation.

👋
❓
❓
APX USDⓈ-M Perpetual Futures Price Index