Learn: risk and leverage
What is the mark price, and why does it matter for liquidation?
The mark price is the reference price a derivatives venue uses to value positions and trigger liquidations. It is built from an index of several spot venues rather than the contract's last trade, so a sudden wick on one market alone usually cannot liquidate you. A real move that drags the index with it always can.
How it works
Every trading venue shows a last price: the price of the most recent trade. On a thin order book, one large market order can print a trade far from where the coin really trades, a wick. If venues liquidated on the last price, anyone could knock out leveraged positions by pushing one market for a moment. So derivatives venues value positions on a mark price instead.
The mark starts from an index price: a combination of the coin's spot price on several venues, often the median or a weighted average, with stale or broken venues excluded. The mark is then built from the index, adjusted for the perpetual's normal premium and the funding in progress, and constrained so that the last price alone cannot drag it.
This protects you from bad prints, not from leverage. If the whole market moves, every venue in the index moves, the mark follows, and the position is liquidated exactly as the formula says. See liquidation for where that line sits.
The exact rule the games grade by
The rule the games use: index = the median of the venue prices. Mark = the median of three candidates: (1) index x (1 + funding rate x the elapsed share of the funding interval); (2) index + the moving-average basis of the perpetual over the index; (3) the last traded price. Because the mark is a median, a wick in the last price alone cannot move it past the other two candidates. A position is liquidated when the mark, not the last price, reaches its liquidation price.
Step by step
- List the spot prices of the venues in the index and take the median: that is the index.
- Compute candidate 1: index x (1 + funding rate x elapsed share of the interval).
- Compute candidate 2: index + the average basis. Candidate 3 is the last price.
- Take the median of the three candidates: that is the mark.
- Compare the mark with the liquidation price. Only the mark decides.
Worked example
A long position is liquidated at 59,000. Suddenly the perpetual's last price wicks to 58,900, right through the line. Does the position close?
First the index. Five spot venues show 60,010, 60,025, 59,990, 60,040 and 60,005. Sorted, the middle one is 60,010: that is the index.
Then the three candidates. Candidate 1 is the index with the funding term: 60,010 x (1 + 0.01% x 0.5) = 60,013.0. Candidate 2 is the index plus a 12 USDT average basis: 60,022. Candidate 3 is the last price: 58,900. The median of 58,900, 60,013.0 and 60,022 is 60,013.0.
The mark, 60,013.0, is 1,013.0 USDT above the liquidation price, so the position survives the wick. If the venue liquidated on the last price, the position would have been closed at 58,900.
Takeaway: A wick to 58,900 on one market does not move a mark built from the median: it stayed at 60,013.0, above the 59,000 line. A real move that drags the venues in the index down would have closed the position.
Common mistakes
- Reading the last price as your liquidation trigger. Venues liquidate on the mark. A chart of the last price can show your line crossed while the position is still open, and the reverse cannot happen: the mark crossing always counts.
- Trusting the mark to save a leveraged position. The mark filters bad prints, not real moves. When the whole market falls, the index and the mark fall with it.
- Assuming every venue uses the same rule. Index weights, the venues included and the exact mark formula differ by venue and change over time. The games use one common rule for training; read your venue's own documentation.
- Sitting close to the line because "it only wicked". If a wick can reach your liquidation price, the next real move can too. Distance from the line comes from smaller size and lower leverage, not from the mark.
What this does not tell you, and what can go wrong
The mark price explains why a single bad print usually does not liquidate you. It does not protect you when spot prices across many venues fall together, and in a fast crash the index itself can move quickly. Your profit and loss on screen is also based on the mark, so it can differ from what you would get if you closed at the last price.
What can go wrong: index sources can fail, lag or be manipulated if they rely on thin venues, and venues have had incidents where index or mark prices behaved badly. Rules differ by venue and can change. Treat the mark as protection against noise, never as a reason to use more leverage.
Questions people ask
What is the difference between mark price and last price?
The last price is the most recent trade on one market. The mark price is a reference built from an index of several spot venues, adjusted for the perpetual's premium and funding. Venues use the mark to value positions and trigger liquidations, so one unusual trade does not decide your position.
What is an index price?
A combined spot price for a coin, taken from several venues, often as a median or a weighted average, with venues that stop updating left out. It is the anchor the mark price is built from, and it is what funding compares the perpetual's price with.
Can a wick liquidate my position?
A wick on the perpetual's last price alone usually cannot, because liquidation follows the mark price. A wick that appears on many spot venues at once moves the index, and the mark with it, so it can. And positions with high leverage are close enough to the line that ordinary moves reach it.
Practise it
Reading about a rule is not the same as applying it. These games generate a fresh simulation each round, ask you to make the call first, and grade you against the same rule.
Mark vs Last
A wick prints on the last price of a perpetual. Does the position liquidate? Work out the mark price and call it.