Sub topic 11
Index Price and Mark Price
Assume you understand spot markets, futures, perpetual swaps, leverage, and basic percentages. This chapter explains two prices that a derivatives exchange uses internally: the index price and the mark price.
The index price
The index price is an exchange's estimate of the current spot price. It usually combines prices from several spot exchanges instead of trusting one venue.
For example, an exchange might collect BTC/USD prices from three markets:
| Spot venue | BTC price |
|---|---|
| Venue A | $60,000 |
| Venue B | $60,100 |
| Venue C | $59,900 |
A simple index would be the average, $60,000. Real indexes may use a weighted average, remove outliers, or ignore a venue when its data is stale.
The index price gives the derivatives market a reference for the underlying asset. It helps reduce the effect of a temporary price spike on one exchange.
The mark price
The mark price is a fair-value price used by a derivatives venue. It is usually calculated from the index price and information about the derivative's current premium or discount.
A perpetual swap may trade above the index when demand from long traders is strong. The mark price can reflect part of that difference while limiting the effect of one abnormal trade.
The exact formula differs by venue. Some exchanges use an index plus a smoothed basis. Others use an impact bid or ask price, which estimates the price available for closing a position of a specified size.
def unrealized_pnl_linear(qty, entry_price, mark_price, side):
"""Return quote-currency PnL for a linear contract."""
direction = 1 if side == "long" else -1
return direction * qty * (mark_price - entry_price)
entry = 60_000
last_trade = 60_800
mark = 60_250
print(unrealized_pnl_linear(1.0, entry, last_trade, "long"))
print(unrealized_pnl_linear(1.0, entry, mark, "long"))This position has a $800 gain using the last trade price but only a $250 gain using the mark price. The venue may use the mark price for displayed unrealized profit, margin checks, and liquidation.
How the prices interact
The last traded price still matters. It is the price of the most recent matched order and may be used for charts and order execution. However, it may not be the price used to liquidate a position.
Common errors and failure modes
- Confusing the prices: A chart's last price may differ from the mark price used in the risk engine.
- Assuming one formula: Each venue defines its index sources, weights, smoothing, and mark-price formula.
- Ignoring data quality: A broken spot source, stale feed, or network outage can produce an unreliable index.
- Expecting protection from every spike: Mark prices reduce manipulation risk but cannot remove losses from genuine market moves.
- Checking only entry and last price: Liquidation depends on mark price, maintenance margin, fees, funding, and the account's other positions.
Read the venue's contract specification before estimating liquidation or comparing prices across platforms.
Exercise
The index price is $60,000, the last traded perpetual price is $60,700, and the mark price is $60,150. Which price is most likely used for a liquidation check?
Show answer
The mark price, $60,150, because the venue normally uses it for margin and liquidation calculations.