Aster
  • OVERVIEW
    • What is Aster?
      • How to connect your wallet
      • Our smart contracts
  • Rewards Hub
  • PRODUCT
    • Product releases
    • AsterEX Pro
      • Pro fees
      • Margin
        • Calculating max transfers in Cross and Isolated margin
      • Mark price
      • Liquidations
      • Funding rate
      • Single asset mode & Multi-asset mode
      • Order types
      • Trailing Stop Order
      • Open Cost calculation
      • Grid Trading
        • Set-up Your Grid Trading Strategy
        • Futures Grid Trading Auto Parameters Guide
        • Long/Short Grid Trading introduction
      • VIP & MM program
        • Market maker requirement
      • ADL
      • Deposit/Withdraw Guide
      • Referral program
      • API
        • How to create API
        • API document
      • Delisting of a perps contract
    • AsterEX Simple
      • Leverage
      • Price oracles
      • Fees & slippage
      • Degen Trading Mode
      • Dumb mode
      • Manage your positions
      • Order types
      • Interact with the contract directly
    • Aster Earn
      • Mint asBNB
      • Mint asCAKE
      • Mint asUSDF
      • Mint asBTC
      • Aster ALP
        • How to mint ALP?
        • How to burn ALP?
        • ALP Fees
      • Ecosystem
        • PancakeSwap
          • LP on PancakeSwap
        • Pendle
          • asUSDF on Pendle
          • asBNB on Pendle
          • USDF on Pendle
          • How to calculate Au points for LP and YT
          • How to transfer liquidity to new pool
        • Tranchess
        • Restaking
        • Yield Strategies
    • USDF Stablecoin
      • Situating USDF in the Stablecoin Landscape
      • How USDF Works
      • Maintaining the Peg
      • Fund Custody & Risk Management
      • FAQs
      • Tutorials
    • AsterLayer
    • Help
  • Stage 1: Spectra
    • Aster Spectra: Stage 1
    • Mint to Earn Au
    • Au Trader Boost
    • Trade like a Pro, Earn like a Pro
    • Treasure Boost Campaign
    • Referral Bonus & Team Boosts
  • Brand & Community
    • Aster Media Kit
    • Official links
  • About us
    • Audit Reports
    • AsterDEX – Terms & Conditions
    • AsterDEX – Privacy Policy
Powered by GitBook
On this page
  • Overview
  • Price index
  • Mark price calculation
  • Handling abnormal market conditions
  1. PRODUCT
  2. AsterEX Pro

Mark price

For Pro mode (orderbook perpetual contracts)

PreviousCalculating max transfers in Cross and Isolated marginNextLiquidations

Last updated 1 month ago

Overview

On , the mark price serves as a reference price to calculate traders' unrealized profit and loss (PnL). It helps reduce unnecessary forced during periods of abnormal market volatility, ensuring fair and accurate pricing of perpetual contracts.​

Price index

The price index is a weighted average derived from major spot markets such as Binance, Huobi, and Kraken. Markets with higher trading volumes have a greater influence on the index value. This index represents the fair value of the asset's spot price and is used to calculate the mark price, which is crucial for determining unrealized PnL.​

Mark price calculation

The mark price is determined by taking the median of three prices:​

  • Price 1: Price index × (1 + Funding rate × (Time to next funding rate in hours ÷ 8))

  • Price 2: Price index + 5-minute moving average

  • Contract Price: The current contract price​

The 5-minute moving average is calculated by sampling every minute over a 5-minute interval:​

Moving average = Average of ((bid 1 + ask 1) ÷ 2 − Price index)​

The mark price is the median of Price 1, Price 2, and the Contract Price. For example, if Price 1 < Price 2 < Contract Price, then Price 2 is selected as the Mark Price.​

Handling abnormal market conditions

In cases of significant deviations between price sources or abnormal market conditions causing large differences between the spot price and the mark price, Aster Pro may implement precautionary measures:​

  • Single price source deviation: If the last price from a particular exchange deviates more than 5% from the median price of all sources, that exchange's price weight is set to zero.

  • Multiple price source deviations: If more than one exchange shows a deviation greater than 5%, the median price of all sources is used as the index value instead of the weighted average.

  • Exchange connectivity issues: If any exchange fails to update its price feed within 3 seconds, that source is removed from the price index calculation. This prevents outdated prices from influencing the mark price.

  • Last trade price protection: If the latest trade price deviates more than 5% from the mark price and no new trade occurs within 5 seconds, the contract price is replaced with the current mark price in the mark price calculation. This prevents the system from using stale or potentially manipulated trade prices in liquidation-related processes.

Aster Pro
liquidations