Myth: your stop and your liquidation watch the same price.
Rule on Bitunix: liquidation checks mark, and a TP/SL can be set to last or mark (advanced, BTC)
Key takeaway
13.6. That was the gap between last and mark on Bitunix BTCUSDT at 10:22 AM ET today, with mark sitting below last. Small, but it is enough to show why a stop and a liquidation can disagree about where price is.

- The myth
"If my stop is above my liquidation price on the chart, the stop always fires first." It sounds right because both lines sit on the same candle chart. They are not checked against the same price.
- The rule
- Liquidation on Bitunix is checked on mark price. Bitunix's own explainer on liquidation price says the mark price is used for unrealized PnL calculations and liquidation checks, to reduce the impact of sudden price spikes.
- TP/SL has a trigger type. Bitunix's Place TP/SL Order API lists two values for both tpStopType and slStopType: LAST_PRICE and MARK_PRICE.
So a stop can watch trades (last) or the same line the liquidation engine watches (mark). Which one you pick changes what "above liquidation" means.
- The live numbers
Bitunix public data, BTCUSDT, 10:22 AM ET Nov 16:
- Last: 64,233.9
- Mark: 64,220.3
- Index: 64,252.7
- 24h high 65,675, low 63,871
- The math, step by step
- Last minus mark = 64,233.9 - 64,220.3 = 13.6.
- As a share of mark: 13.6 / 64,220.3 = 0.0212%.
- Index minus mark = 64,252.7 - 64,220.3 = 32.4, or 0.0504%.
- For a long with liquidation price P_liq, the real distance is (mark - P_liq) / mark. With mark 13.6 under last, the position was 13.6 closer to liquidation than a reading off the last-price candle would suggest.
- For a short, the same gap works in your favor at this snapshot: mark is lower than last, so a short's mark-based distance to P_liq above is 13.6 wider than the chart shows.
- The gap moves with every trade and every basis update, which is why the page in the image, captured a couple of minutes later, does not match these API numbers to the dollar. Read it fresh before you size anything.
- Picking the trigger type
- LAST_PRICE stop: fires on the first trade at or through S. Good when you want out on any print, but a one-trade spike can take you out of a position that the mark never threatened.
- MARK_PRICE stop: fires on the same line the liquidation check uses, so it ignores a single wild print. The cost is that by the time mark reaches S, last may already be through it, and the market close happens at whatever the book offers.
For a long with leverage L and q BTC, neither choice changes P_liq. It only changes which price has to touch S. If you run a MARK_PRICE stop, keep S far enough above the mark-based P_liq that fees and a fast book still leave room.
- Common mistakes
- Measuring the stop-to-liquidation buffer on the last-price chart while the engine uses mark.
- Leaving the trigger type at whatever it was last time instead of choosing it per trade.
- Assuming the 13.6 gap is fixed. It is a 10:22 AM ET snapshot, and the sign can flip.
- Setting S so close to P_liq that a MARK_PRICE trigger fires and the close fills past liquidation anyway.
- Forgetting that unrealized PnL on the position tab is mark-based, so it will not match the last trade on the chart.
- FAQ
Does Bitunix liquidate on last price?
No. Bitunix says liquidation checks use mark price.
Can I choose the trigger price for TP/SL?
Yes. The API exposes LAST_PRICE and MARK_PRICE for both take-profit and stop-loss triggers.
Is mark always below last?
No. At 10:22 AM ET BTCUSDT mark was 13.6 below last, but the side can change. It depends on how the perp trades against the index.
Does this apply to ETH, SOL, XRP and DOGE perps too?
Yes, the rule is per venue, not per coin. Only the size of the gap differs.
Checklist before your next stop:
- Read mark in the pair header, not just last.
- Pick LAST_PRICE or MARK_PRICE on purpose.
- Measure the buffer from mark to P_liq.
- Re-check after any sharp move.