neofinance

How Binance derives the mark price

Liquidations and unrealised PnL on Binance perpetuals run off the mark price, not the last trade. The graph below rebuilds it live in your browser from Binance’s public feeds, step by step, and checks the result against the number Binance publishes.

connecting
Mark (Binance)—
Price Index—
Last trade—
Median picks—
Rebuild errorwarming 0/30s

Loading graph…

The rule

Mark Price = median( Price 1, Price 2, Contract Price )

Price 1    = Index × (1 + last funding rate × time to next funding / funding period)
Price 2    = Index + MAn( (bid₁ + ask₁)/2 − Index ),  one sample per second
Contract   = last traded price on the perpetual

n is 30 samples (30 seconds) for crypto perpetuals and 60 (one minute) for TradFi perpetuals. Taking the median means no single input — say, one spiky trade — can set the mark by itself. Price 1 anchors to the index plus the funding premium still to be paid; Price 2 follows where the perp’s own book trades, smoothed.

Same formula, different index

The mark formula is identical for both contracts. What differs is everything feeding the Price Index.

BTCUSDTNVDAUSDT
Contract typePERPETUAL (crypto)TRADIFI_PERPETUAL (equity)
Index sources8 spot exchanges (loading)Market-data vendors (loading) plus a small weight on the perp itself
CurrencyQuotes already in USDTUSD quotes ÷ USDT/USD index
Trading hours24/7, one regimeRegime follows the US session — now: US overnight session
Outlier guard±3% vs median; 5 min stale → weight 0±5% vs median (regular, extended, overnight); ±3% weekends
Price 2 window30 s60 s
Fundingevery 8h, cap ±0.00%every 8h, cap ±0.00%

For NVDAUSDT the session shown is read from the New York clock and ignores exchange holidays. Binance publishes the TradFi vendor weights but returns no live vendor prices, so those boxes show the weight only. When Binance cannot get stable reference data it falls back to a “last price protected” mode, which this page does not model.