Skip to main content

Index price

What is Index Price?

The Index Price is the reference spot market price used as the foundation for calculating the Mark Price in perpetual contracts. It represents the fair value of the underlying asset based on actual spot market trading activity.


Index Price Algorithm

Our Index Price is calculated using VWAP (Volume-Weighted Average Price) from recent spot market trades:

Index Price (VWAP)=i=1n(Pi×Vi)i=1nVi\text{Index Price (VWAP)} = \frac{\sum_{i=1}^{n} (P_i \times V_i)}{\sum_{i=1}^{n} V_i}

Where:

  • (P_i) = Price of trade (i)
  • (V_i) = Volume of trade (i)
  • (n) = Number of recent trades (default: 50)

Data Source

The Index Price is derived from the spot market trading data of the corresponding trading pair. For GMYD/sCNH perpetual contracts, the Index Price is calculated from GMYD/sCNH spot market trades.

ParameterValue
Trade Sample Size50 recent trades (default)
Calculation MethodVolume-Weighted Average Price (VWAP)
Update FrequencyOn each mark price update cycle

Why Use VWAP?

VWAP provides several advantages over simple average or last price:

MethodFormulaAdvantageDisadvantage
Last PriceMost recent trade priceSimpleEasily manipulated by small trades
Simple AverageΣ(Price) / nIgnores volumeSmall trades equal weight to large
VWAPΣ(Price × Vol) / Σ(Vol)Volume-weighted, manipulation-resistantRequires trade data

VWAP Benefits

  1. Manipulation Resistance - Large trades have proportionally more influence
  2. Fair Representation - Reflects where most trading volume occurred
  3. Smooth - Averages out noise from small trades
  4. Market Reality - Weighted by actual liquidity

Calculation Example

Sample Trade Data

Trade #Price (sCNH)Volume (GMYD)Value (Price × Volume)
11.941,0001,940
21.952,0003,900
31.93500965
41.941,5002,910
51.963,0005,880

VWAP Calculation

Step 1: Calculate Total Value

Total Value=1,940+3,900+965+2,910+5,880=15,595 sCNH\text{Total Value} = 1{,}940 + 3{,}900 + 965 + 2{,}910 + 5{,}880 = 15{,}595 \text{ sCNH}

Step 2: Calculate Total Volume

Total Volume=1,000+2,000+500+1,500+3,000=8,000 GMYD\text{Total Volume} = 1{,}000 + 2{,}000 + 500 + 1{,}500 + 3{,}000 = 8{,}000 \text{ GMYD}

Step 3: Calculate VWAP (Index Price)

Index Price=15,5958,000=1.949375 sCNH\text{Index Price} = \frac{15{,}595}{8{,}000} = 1.949375 \text{ sCNH}

Comparison with Other Methods

MethodResultNote
Last Price1.96 sCNHOnly considers trade #5
Simple Average(1.94+1.95+1.93+1.94+1.96)/5 = 1.944 sCNHIgnores volume
VWAP1.949375 sCNHWeighted by volume - trade #5 (3,000 vol) has most influence

Index Price vs Mark Price

Price TypeSourcePurpose
Index PriceVWAP of spot market tradesBase reference price
Mark PriceIndex Price + Premium IndexPnL calculation, Liquidation triggers

Relationship

Mark Price=Index Price+Premium Index\text{Mark Price} = \text{Index Price} + \text{Premium Index}

The Index Price serves as the anchor, while the Premium Index adjusts for futures market deviation (clamped to ±0.05%).


Index Price Usage

The Index Price is used in the following calculations:

CalculationHow Index Price is Used
Mark PriceBase component: Mark Price = Index Price + Premium Index
Premium IndexReference: Premium = (Futures Price − Index Price) / Index Price
Funding RateUsed in premium calculation for funding rate

Summary

ItemDescription
DefinitionVolume-Weighted Average Price of spot market trades
FormulaVWAP = Σ(Price × Volume) / Σ(Volume)
Sample Size50 recent trades (default)
Data SourceSpot market trade data
UpdateOn each mark price update cycle
PurposeFair reference price for mark price calculation