Mark Price
Fair-price estimate used for risk, PnL, and liquidation logic
Mark price is OBSDN's manipulation-resistant fair-value estimate for each perpetual contract. It is the reference price for:
- Unrealized PnL computation
- Liquidation and margin evaluation
- Stop order trigger logic
OBSDN computes mark price as:
Mark Price=Median(P1,P2,Last Traded Price)
Where:
P1=Pindex×[1+rf×8t]
P2=Pindex+MA2.5min(Basis)
MA2.5min(Basis)=MA[2Bidbest+Askbest−Pindex]
Definitions:
- P1 — funding-adjusted index price: index price adjusted by the pro-rata funding cost remaining until next settlement. Reflects fair value implied by the prevailing funding rate.
- P2 — basis-adjusted index price: index price plus the 2.5-minute moving average of the current basis. Reflects fair value implied by recent order-book conditions.
- Pindex: aggregated spot reference price from oracle sources
- rf: latest funding rate
- t: hours until next funding settlement
- Basis: mid-price minus index price — 2Bidbest+Askbest−Pindex
Assume:
- Pindex=50,000
- rf=0.01% (0.0001)
- t=2 hours
- MA2.5min(Basis)=+10
- Last traded price =50,020
Then:
- P1=50,000×(1+0.0001×2/8)=50,001.25
- P2=50,000+10=50,010
- Mark =Median(50,001.25,50,010,50,020)=50,010
- If the last traded price is stale beyond configured thresholds, it is substituted by the index price in the median calculation.
- If mark price diverges materially from validated external pricing, market-level protections activate (reduce-only or halt).