# 3-Component Perpetual Fair Mark Price Median Specification

> Dissect the three-component median Fair Mark Price formula—funding-basis decay, EWMA basis moving average, and perp orderbook mid—preventing wick liquidations.

Canonical: https://instrumentledger.com/specs/three-component-fair-mark-price-median-anti-manipulation-spec
Last updated: 2026-11-14T19:51:03.099Z

**Publication:** Instrument Ledger
**Category:** Perpetual Funding Rate Mark Price Math
**Published:** 2026-11-14T07:55:25.915Z
**Author:** Grant Holloway, FRM, ERP (Financial Risk Manager (GARP FRM), Energy Risk Professional (ERP, Chicago))
**Reviewer:** Not recorded

## Answer-first summary

Institutional perpetual risk engines trigger margin liquidations strictly off a three-component median Fair Mark Price rather than Last Traded Price, neutralizing flash-wick cascades and cross-venue oracle disconnects.

## Key takeaways

- Perpetual liquidations and cross-margin equity checks evaluate exclusively at Fair Mark Price = Median(Price_1, Price_2, Price_3), never Last Traded Price (LTP).
- Price_1 tracks linearly decaying current funding basis, Price_2 tracks a 2.5-to-5-minute EWMA of perp-vs-spot basis, and Price_3 tracks live perpetual midpoint.
- Because the median of three numbers discards any single extreme value, a sudden +8% flash wick on the perpetual orderbook cannot trigger liquidations.
- Setting stop-losses on Last Price exposes accounts to thin-book stop hunts, whereas Mark-Price stops align cleanly with actual margin liquidation distance.
- During instant >5% basis squeezes, Mark-anchored order price collars (Mark * 1.05) can temporarily cap aggressive buy closes until EWMA Price_2 catches up.

## Related financial entities

- **CPMI-IOSCO Principles for Financial Market Infrastructures (PFMI)** (PFMI-CCP) — product: International standards for payment, clearing, and settlement systems, designed to ensure that central counterparties can withstand extreme member defaults.
- **Perpetual Contract Funding Rate Convention** (PERP-FUND) — product: Continuous settlement mechanism without expiration date that ties perpetual swap contract prices to spot index prices via periodic funding fee transfers.

## Analysis

In 24/7 leveraged derivatives markets, triggering margin liquidations off **Last Traded Price (`LTP`)** is catastrophic: a single aggressive market order sweeping a thin Sunday night perpetual book by 8% ("scam wick") would detonate cascading stop-out orders even while external spot [Bitcoin BTC](/exchanges/bitcoin-btc-spec) and [Ethereum ETH](/exchanges/ethereum-eth-spec) venues remain rock-steady! Conversely, marking leveraged perpetuals *purely* to the raw Spot Index ignores legitimate persistent basis premia—immediately liquidating high-leverage shorts when a token enters genuine +1.50% contango! Modern risk engines solve both failure modes simultaneously by defining **`Fair_Mark_Price = Median(Price_1, Price_2, Price_3)`**.

Within our [Perpetual Futures Funding Clamps, Mark Price and ADL Master Guide](/specs/perpetual-swap-funding-rate-clamps-mark-price-adl-master-guide) under the [Perpetual Swap Funding Clamps, Impact Margin Notional, Mark Price & ADL](/topics/perpetual-funding-rate-mark-price-math) hub, this oracle specification pairs directly with [Spot Index Constituent Outlier Ejection](/specs/spot-index-constituent-outlier-ejection-circuit-weight-rebalance) and [Perpetual Bankruptcy vs Liquidation Price Equations](/specs/perpetual-bankruptcy-price-vs-liquidation-price-cross-isolated).

## Anatomy of `Price_1`, `Price_2`, and `Price_3` Inside the Median Operator

Every second (or sub-second tick), the margin engine evaluates three distinct price estimators anchored to the composite **Spot Index (`S`)** under the [Perpetual Contract Funding Rate Convention](/contracts/perpetual-contract-funding-convention):
1. **`Price_1` — Linear Decay Funding-Basis Price**: `S × [ 1 + F_current × (Time_Until_Next_Funding / Funding_Interval) ]`. At the start of an 8-hour epoch (`t = 8h` remaining) with `F = +0.08%`, `Price_1` stands at `S × 1.0008`, decaying smoothly toward `S × 1.0000` right as the funding payout approaches!
2. **`Price_2` — Smoothed EWMA / Moving-Average Basis Price**: `S + MA_N(Perp_Impact_Mid - S)`, where `MA_N` is a 2.5-minute to 5-minute exponentially weighted (or arithmetic) moving average of the perpetual-minus-spot basis! Because `MA_N` averages across 30 to 300 five-second samples, a 10-second perpetual flash wick barely moves `Price_2`, while a genuine 15-minute market-wide basis shift updates `Price_2` smoothly!
3. **`Price_3` — Live Perpetual Orderbook Midpoint**: `0.5 × (Perp_Best_Bid + Perp_Best_Ask)` (or `Median(Best_Bid, Best_Ask, Last_Price)`).

Taking **`Median(Price_1, Price_2, Price_3)`** guarantees mathematical outlier immunity: **if `Price_3` flashes +9% upward in a 3-second perpetual squeeze while `Price_1` (+0.04%) and `Price_2` (+0.07%) remain anchored to Spot, `Median` discards `Price_3` and returns `Price_2` (+0.07%)—saving zero shorts from unfair wick liquidation!**

![Three-component Fair Mark Price median filtering out a +9% flash wick on perpetual Last Traded Price](/api/figure?type=flow&title=3-Component%20Fair%20Mark%20Price%20Median%20Outlier%20Rejection&subtitle=How%20Median%28Price_1%2C%20Price_2%2C%20Price_3%29%20blocks%20single-book%20flash%20wicks%20from%20triggering%20liquidations.&steps=Price%201%20%28Funding%20Decay%29%3A%3ASpot%20*%20%281%20%2B%20Funding%20*%20Remaining_Time%20%2F%20Interval%29%20tracks%20carry%20decay%7CPrice%202%20%28EWMA%20Basis%29%3A%3ASpot%20%2B%205-Min_EWMA%28Perp_Mid%20-%20Spot%29%20captures%20persistent%20basis%20shifts%7CPrice%203%20%28Live%20Perp%20Mid%29%3A%3AInstantaneous%20%28Bid%20%2B%20Ask%29%2F2%20or%20Median%28Bid%2C%20Ask%2C%20LTP%29%20on%20CLOB%7CMedian%20Selector%3A%3ASelects%20middle%20value%20-%3E%20100%25%20immune%20to%20any%20single%20extreme%20outlier!&metrics=FLASH%20WICK%20IMPACT%3A%3A0.00%25%20Leak%3A%3ARejected%20by%20median%20until%20EWMA%20moves%7CEWMA%20HALF-LIFE%3A%3A30s%20%E2%80%93%20150s%3A%3A2.5m%20to%205m%20basis%20smoothing%20window%7CMARK%20UPDATE%20FREQ%3A%3A200ms%20%E2%80%93%201.0s%3A%3ABroadcast%20to%20real-time%20margin%20engine%7CUNREALIZED%20PNL%3A%3AMarked%20to%20Mark%3A%3ALTP%20only%20governs%20realized%20fills)

## Worked Flash-Wick Stress Test: `LTP` vs `Fair Mark Price`

Let's prove numerically how the three-component median protects a 20x leveraged short trader on [Solana SOL](/exchanges/solana-sol-spec) (`SOLUSDT`, Maintenance Margin = 1.00%, Liquidation Trigger = +4.00% adverse move from $180.00 entry = **$187.20**) when an illiquid Sunday sweep spikes perpetual `LTP` and `Perp_Mid` to **$194.00 (+7.78%)** for 8 seconds while external Spot stays at **$180.20**:

## Median Estimator Evaluation Under Single-Sided Wick Stress

```formula
Price_1 = Spot_Index * ( 1 + Current_Funding_Rate * (T_remaining / T_interval) )
Price_2 = Spot_Index + EWMA_5min( Perp_Mid - Spot_Index )
Price_3 = Median( Perp_Best_Bid, Perp_Best_Ask, Perp_Last_Trade )
Fair_Mark_Price = Median( Price_1, Price_2, Price_3 )

Worked 8-Second Flash-Wick Survival Audit (Spot = $180.20, 5h left in 8h epoch, F = +0.024%):
- Price_1 = $180.20 * (1 + 0.00024 * (5 / 8)) = $180.20 * 1.00015 = $180.227
- Price_2 = $180.20 + EWMA_5min(spiked for 8s of 300s -> +$0.41 basis) = $180.610
- Price_3 = Spiked Perp Orderbook Midpoint = $194.000 (+7.78% scam wick!)
- Fair_Mark_Price = Median($180.227, $180.610, $194.000) = $180.610 (Well below $187.20 liquidation trigger -> SURVIVES!)
```

## Mark Price vs Last Price Order Trigger Matrix

Active traders using stop-loss orders and API risk guards must configure whether conditional triggers reference `Mark_Price` or `Last_Price`, benchmarking expected normal envelopes in our [Intraday 0DTE Sigma Band Calculator](/calculators/intraday-0dte-sigma-band-calculator).

| Risk Engine Function | Price Reference Used | Why Exchange Enforces This Rule | Trader Configuration Pitfall |
| :--- | :--- | :--- | :--- |
| Mandatory Liquidation Check | **Fair Mark Price** | Blocks single-book wick cascades & Insurance Fund drains | Never assume LTP wicks won't fill stop-market orders! |
| Unrealized Cross-Margin PnL | **Fair Mark Price** | Prevents wash-trading illiquid perp up to borrow cross-collateral | Paper profit at LTP cannot withdraw until Mark catches up |
| Stop-Loss (`Mark` Trigger) | **Fair Mark Price** | Survives scam wicks; aligns stop strictly ahead of liquidation | During genuine fast crash, fills worse if LTP leads Spot by 2% |
| Stop-Loss (`Last` Trigger) | **Last Traded Price** | Exits faster when perpetual leads spot discovery | **Gets stopped out at the exact top/bottom of thin wicks!** |
| Pre-Trade Fat-Finger Collar | **Fair Mark Price ± X%** | Rejects buy limits > +5% above Mark or sells < -5% below Mark | Blocks closing a hedge at LTP if Perp dislocates >5% from Mark! |

![Deadlock risk when perpetual Last Price dislocates past the Mark Price fat-finger order price collar](/api/figure?type=bars&title=The%20Mark-Collar%20Execution%20Deadlock%20During%20Extreme%20Squeezes&subtitle=What%20happens%20when%20live%20CLOB%20liquidity%20trades%20outside%20the%20%2B%2F-5%25%20Mark%20Price%20limit-order%20collar.&steps=Normal%20Regime%20%28%3C0.5%25%29%3A%3ALTP%2C%20Price_2%20EWMA%2C%20and%20Mark%20Price%20track%20within%205%E2%80%9315%20bps%20tightly%7C2-Min%20Basis%20Breakout%3A%3AEWMA%20Price_2%20smoothly%20pulls%20Mark%20Price%20toward%20persistent%20new%20basis%7C%3E5%25%20Instant%20Squeeze%3A%3AIf%20LTP%20jumps%20%2B7%25%20instantly%20while%20Mark%20lags%2C%20%2B5%25%20buy%20collar%20binds!%7CAdaptive%20EWMA%20Fix%3A%3AModern%20venues%20shorten%20EWMA%20window%20dynamically%20under%20high%20basis%20vol&metrics=BUY%20LIMIT%20CEILING%3A%3AMark%20*%201.05%3A%3ATypical%20%2B3%25%20to%20%2B5%25%20fat-finger%20cap%7CSELL%20LIMIT%20FLOOR%3A%3AMark%20*%200.95%3A%3AProtects%20book%20against%20fat-finger%20dumps%7CSTOP%20GAP%20BUFFER%3A%3A%3E%3D%2050%E2%80%93100%20bps%3A%3APlace%20Mark-stops%20well%20ahead%20of%20Liq%7CPFMI%20ORACLE%20STD%3A%3AMulti-Source%3A%3AAligned%20w%2F%20CPMI-IOSCO%20principles)

## The "Price Collar Deadlock" Trap for Stop-Loss Orders

Every institutional execution engineer must guard against a subtle second-order edge case of `Fair_Mark_Price`: to prevent fat-finger sweeps (comparable to CME Price Banding in [CME Globex Price Banding and Protection Points](/specs/cme-globex-price-banding-protection-points-market-order-rejects)), perpetual matching engines reject any aggressive **buy** order priced higher than **`Mark_Price × (1 + Collar%)`** (e.g., `+5%`). If a micro-cap perpetual violently squeezes `+8%` above Spot in 20 seconds—faster than the 5-minute EWMA `Price_2` can pull `Mark_Price` up—a voluntary **buy stop-market order** converts into a limit order capped at `Mark × 1.05`, sitting **3% below the lowest ask on the book and failing to fill** until either `LTP` drops or the 5-minute EWMA lifts `Mark_Price`!

## Frequently asked questions

### Why was my perpetual position NOT liquidated even though the candlestick chart wicked past my liquidation price?

Standard candlestick charts plot Last Traded Price (LTP), whereas the margin engine liquidates strictly off Fair Mark Price. Switch the chart view to Mark Price—the median filter discarded the brief LTP wick.

### Why cannot exchanges simply set Mark Price equal to the external Spot Index price?

During genuine bull or bear trends, perpetual futures legitimately trade at a persistent +0.50% to +1.50% basis premium or discount to spot. Marking purely to Spot would instantly liquidate high-leverage traders the moment they enter at market price.

### Should institutional execution systems trigger protective stop-losses off Mark Price or Last Price?

For liquidation-prevention stops, always trigger off Mark Price with a sufficient safety buffer ahead of Maintenance Margin so flash wicks do not eject the hedge. However, monitor Mark-to-LTP collar width to ensure marketable limit execution.

### Why was my unrealized profit on a spiked perpetual unavailable to withdraw as cross-margin collateral?

Exchanges value unrealized PnL at Fair Mark Price (and often apply haircuts to un-crystallized profits) precisely so attackers cannot wash-trade an illiquid perpetual upward at LTP and borrow real spot USDT against fake unrealized gains.


## Source URLs

- https://www.bis.org/publ/work1087.pdf
- https://www.iosco.org/library/pubdocs/pdf/IOSCOPD747.pdf
- https://www.cpmi.bis.org/publ/d101a.pdf

## Citation

- APA: Grant Holloway, FRM, ERP. (2026). Three-Component Perpetual Mark Price Median: Preventing Wick Liquidations. Instrument Ledger. https://instrumentledger.com/specs/three-component-fair-mark-price-median-anti-manipulation-spec
- Canonical article: [Three-Component Perpetual Mark Price Median: Preventing Wick Liquidations](https://instrumentledger.com/specs/three-component-fair-mark-price-median-anti-manipulation-spec)
- Site research index: [Instrument Ledger](https://instrumentledger.com/llms-full.txt)
