What is Liquidation?
Liquidation is the automatic closure of one or more open positions when your account no longer has sufficient margin to support them. It prevents your balance from going negative. You lose the margin allocated to the affected position(s), but never owe more than you deposited.When Does Liquidation Happen?
Liquidation triggers when your Margin Ratio reaches 100% — your account equity has dropped to the maintenance margin level:Margin Ratio = Maintenance Margin Required / Account Equity
In cross margin mode (used on Yellow.pro), this is calculated across all your open positions together, not per individual position.
The Maintenance Margin Rate (MMR) is the fraction of position notional you must keep as a buffer. On current markets (BTC and ETH perpetuals) the MMR is a flat 0.5%:
Maintenance Margin Required = Position Notional × 0.5%
To protect you from brief price wicks, liquidation is evaluated on the worst-case mark price seen in each scan window — the lowest price for longs and the highest for shorts — not on a single instantaneous tick.
The Liquidation Process
- Detection — the system continuously monitors your account’s margin ratio.
- Trigger — when the ratio hits 100%, the liquidation engine takes over your account.
- Netting — if you hold both a long and a short in the same market, they are closed against each other first to reduce exposure.
- Takeover & settlement — your remaining position(s) are taken over and matched against opposing traders through auto-deleveraging (ADL), settled at your Liquidation Price (or the Bankruptcy Price as a fallback — both explained below).
- Record — the liquidation is logged in your Trade History.

1
Partial close at bankruptcy price
Instead of seizing the entire position at once, the engine places a partial close order at the bankruptcy price, reducing your position size in steps.
2
Tier-aware step sizing
The reduction amount is sized according to the position’s risk tier, so larger positions reduce in proportionally appropriate increments.
3
Re-check after each step
After each partial close, the engine re-evaluates whether full liquidation is still necessary. If your margin is restored, the position survives at a smaller size.
4
Minimum-lot protection
Reduction steps respect the market’s minimum order size. If the default step is too small to trade, the engine automatically escalates to a tradeable size.
Tiered reduction is designed to give your position the best chance of surviving a margin breach at a smaller size. It happens automatically — there’s nothing to configure — but the best protection is still to manage margin and leverage before the maintenance level is reached.
Liquidation Price
Your Liquidation Price is the estimated Mark Price at which your account would be liquidated — the price at which your equity falls to the maintenance margin level. It’s shown in the positions panel. In cross margin it is not fixed: it moves with your unrealized PnL, positions you open or close, and deposits or withdrawals. For a single position with balanceB, the simplified formula is:
Worked example
Worked example
You open a long of 0.1 BTC at 50,000, with a balance of 1,000 USDT and no other positions. At MMR = 0.5%:
(0.1 × 50,000 − 1,000) / (0.1 × (1 − 0.005)) = 4,000 / 0.0995 ≈ 40,201Your liquidation price is about 40,201. Adding margin lowers it; opening more positions or taking losses elsewhere raises it.Bankruptcy Price
The Bankruptcy Price is the Mark Price at which your account equity reaches zero. It sits beyond your liquidation price (lower for a long, higher for a short) — liquidation is triggered first, leaving a thin buffer before bankruptcy.Mark Price vs Last Traded Price
Yellow.pro shows two prices, and the difference matters:- Last Traded Price — the price of the most recent trade. It can be briefly distorted by large orders or thin liquidity.
- Mark Price — a calculated fair-value price derived from external reference data that smooths out temporary anomalies.
This protects you both ways: a temporary spike in the last traded price that doesn’t move the Mark Price will not liquidate you — but a drop in the Mark Price that isn’t visible on the chart can. Always watch the Mark Price in your positions panel.
How to Avoid Liquidation
- Set stop-loss orders to exit before the liquidation threshold (not guaranteed).
- Add margin (deposit funds) to increase your buffer.
- Reduce position size or leverage to lower the maintenance margin required.
- Monitor your margin ratio and act early. Make sure margin warning emails are enabled.