What is Mark Price?
Mark Price is a “fair” reference price that Mudrex uses to calculate your unrealized P&L and to check whether your position should be liquidated. It’s designed to be steadier than the last traded price so you’re not punished by random spikes or thin-liquidity wicks. Liquidation checks on Mudrex are based on the Mark Price, not the last traded price.
Think of Mark Price as a reasonable estimate of what an asset should be worth right now. Instead of relying on a single exchange’s last trade, which can swing a lot, Mark Price blends broader market data and, for perpetual swaps, small fairness adjustments. Mudrex uses this steadier number to show your unrealized profit or loss and to decide if your margin is still safe.
Why not use the last traded price?
The last traded price (LTP) can move suddenly when one big order hits or when the order book is thin for a few seconds. If we used LTP to check margin, a quick wick could liquidate good positions unfairly. Mark Price smooths out those jumps. That means your risk checks and P&L readouts are based on a price that’s harder to manipulate and less erratic than a single trade print.
What goes into Mark Price?
Formulas differ slightly by platform, but the principle is consistent. Begin with a blended spot index—a price constructed from multiple major exchanges—and, for perpetual contracts, apply a modest funding/basis adjustment that decays into the next funding time. The result is a fair-value estimate that closely tracks spot and is appropriate for risk checks and open P&L on Mudrex.
Calculation of Mark Price
For perpetual contracts, you can think of Mark Price as the middle value (median) of three numbers:
1) an index-plus-funding estimate, 2) an index-plus-short-term basis estimate, and 3) the last traded price.
Written out:
- Mark Price = median( Price₁, Price₂, Last Traded Price )
- Price₁ = Index Price × [1 + Funding Rate × (Time until next funding ÷ 8)]
- Price₂ = Index Price + (short-term basis moving average)
Here, the short-term basis moving average is calculated from the order book midpoint — that is, (best bid+best ask) — minus the Index Price, averaged over about 2.5 minutes. In simple terms:
- the index anchors Mark Price to the broad spot market,
- the funding adjustment nudges perps toward spot, and
- the short-term basis average smooths brief swings.
Worked example
- Index Price = $30,000
- Funding Rate = 0.01% (0.0001)
- Time until next funding = 4 hours (half of an 8-hour cycle)
- Order book midpoint = $30,010 → basis moving average = +$10 (30,010 − 30,000)
- Last Traded Price = $30,050
Step 1: Price₁ = 30,000 × [1 + (0.0001 × 4/8)] = 30,001.5
Step 2: Price₂ = 30,000 + 10 = 30,010
Step 3: Mark Price = median(30,001.5, 30,010, 30,050) = 30,010
So the Mark Price = $30,010, which is slightly different from the last trade. This is by design: it keeps risk checks and open P&L tied to a fair, stable reference rather than a single print.
How Mudrex uses Mark Price
On Mudrex, Mark Price drives two things you care about: the P&L you see while your trade is open, and the liquidation checks that protect your account from going negative. Your open P&L is computed against Mark Price so it doesn’t whipsaw with every micro-move in LTP. More importantly, if your position gets into trouble, liquidation is triggered by Mark Price reaching your liquidation level, not by a flash print on LTP. This helps prevent unfair stop-outs during brief volatility.
Two scenarios: Long vs. Short
Long example (BTC): You go long BTC at $60,000 with leverage. A sudden sell order on one venue briefly pushes the last traded price (LTP) to $57,500. The Mark Price built from broader market data only dips to $58,800. Mudrex uses $58,800 to show your unrealized P&L and to run liquidation checks, not the $57,500 wick. This helps prevent an unfair stop-out from a one-off spike.
Short example (ETH): You short ETH at $3,000. A quick squeeze prints an LTP of $3,090 for a few seconds, but the Mark Price rises only to $3,060. Your risk checks use $3,060, not the jumpy LTP, keeping margin decisions tied to a steadier, fairer reference.
How Mark Price, Liquidation Price, and Bankruptcy Price fit together
These three prices are related but do different jobs. Mark Price is the reference number used day-to-day for P&L and risk checks. Liquidation Price is the trigger level: when the Mark Price touches this level, the platform begins liquidating your position to stop further loss.
Bankruptcy Price is the extreme end: it’s the level at which your initial margin is fully consumed. When liquidation happens, the position is closed at or around the Bankruptcy Price. If the final close is better than bankruptcy, the leftover goes to the insurance fund; if it’s worse, the insurance fund covers the gap. In short, Mark Price is the “fair” yardstick, Liquidation Price is the “start liquidating” line, and Bankruptcy Price is the “margin fully used” line.

