How to Avoid Liquidation on ApeX: A Worked Example
Risk warning. Trading perpetual futures and other leveraged crypto-asset products is high risk. A large share of retail traders lose money, so never trade with money you cannot afford to lose entirely. Disclaimer
Liquidation on ApeX triggers off the mark price, not necessarily the last traded price you happen to be watching, and in fast-moving conditions, your actual forced-exit fill can land worse than your estimated liquidation price, since it fills wherever liquidity exists at that moment.
This guide is part of TradeOnDEX’s ApeX Protocol how-to series within Perpetual Futures, building on the position-opening guide.
Disclosure: TradeOnDEX may earn a commission from links to ApeX on this page, at no extra cost to you. Full details at the end of this article.
What actually triggers liquidation
Liquidation occurs when your equity, collateral plus or minus unrealized profit and loss, minus fees and funding, can no longer cover the maintenance margin required on your open positions. This means for you, concretely: liquidation isn’t just about the raw price of the asset moving against you; funding payments and fees are quietly eating into that same equity buffer the whole time your position is open, even if the price itself hasn’t moved dramatically.
A worked example
Take a long position with a $50,000 entry price, $1,000 of initial margin, a $10,000 position size, and a 0.5% maintenance margin rate. The maintenance margin requirement here is $10,000 × 0.005 = $50. Your available buffer above that requirement is $1,000 − $50 = $950, and dividing that buffer by your position size ($950 ÷ $10,000 = 0.095, or 9.5% of price) gives a rough liquidation price roughly 9.5% below your entry, in this simplified example, somewhere in the neighborhood of $45,250, before accounting for funding and fees, which will move this number closer to your entry price over time as they accumulate.
This means for you, concretely: your liquidation price on day one of a position isn’t necessarily your liquidation price a week later, accumulating funding and fees continuously erode your buffer, so the number moves even if the market itself is flat.
How to build a real safety buffer, step by step
- Target meaningfully more free margin than the bare minimum, a commonly cited rule of thumb is at least 30% free margin beyond what’s strictly required.
- Separately account for projected funding costs (roughly 2x your expected funding over your intended holding period) and projected fees plus slippage (also roughly 2x), rather than assuming a static maintenance-margin number is the whole picture.
- Add a volatility allowance on top, roughly half your expected volatility band for your intended timeframe, since a single sharp move can erode your buffer faster than gradual funding costs do.
- If your live buffer ever falls below this combined target, reduce your position size or add margin immediately rather than waiting to see if the market recovers on its own.
Risk: what most traders get wrong about liquidation
Your estimated liquidation price is not a guaranteed exit price. In fast, thin-liquidity conditions, the mark price can gap through your calculated threshold, and your actual forced exit fills wherever liquidity exists at that moment, which can be meaningfully worse than the number you calculated in advance.
Funding and fees are a slow, continuous drain on your buffer, not a one-time cost. A position that looks safely buffered on day one can have a meaningfully closer liquidation price weeks later purely from accumulated funding and fee costs, even without a major adverse price move.
Mark price and last-traded price aren’t the same number, and liquidation follows the mark. As covered in the position-opening guide, understand which price reference actually governs your liquidation risk rather than watching the wrong number.
A 30% buffer rule of thumb is a starting point, not a guarantee. Extremely volatile markets or thin liquidity conditions can still overwhelm a standard buffer target, size more conservatively specifically around your own risk tolerance and the specific market’s typical volatility, not a single generic number.
Buffer components at a glance
| Buffer component | Rough sizing guidance |
|---|---|
| Free margin above the bare maintenance requirement | At least 30% |
| Projected funding cost over your holding period | Roughly 2x expected funding |
| Projected fees plus realistic slippage | Roughly 2x expected fees |
| Volatility allowance for your timeframe | Roughly 0.5x expected volatility band |
See it for yourself
Before opening a meaningful position, calculate your own liquidation price using ApeX’s own margin and maintenance-margin figures for that specific market, then add a real buffer on top rather than trading right up against the bare minimum. You can review current margin requirements at apex.exchange.
Frequently asked questions
Does liquidation trigger on the last traded price or the mark price?
The mark price, a distinction covered in more depth in the position-opening guide, and one worth understanding since it’s not always the same number you see as the most recent trade.
Will my liquidation price stay the same for as long as I hold a position?
No, accumulating funding payments and fees continuously affect your equity buffer, so your effective liquidation price can move closer to the market price over time even without the underlying asset price itself moving much.
Is a 30% margin buffer always enough?
It’s a reasonable starting point, but extremely volatile or thin-liquidity conditions can still overwhelm it, size your specific buffer around the market’s own typical volatility and your personal risk tolerance, not a single fixed number.
Can my actual liquidation fill price be worse than my calculated liquidation price?
Yes, in fast-moving or thin-liquidity conditions, the forced exit fills wherever liquidity exists at that moment, which can be worse than your pre-calculated estimate.
Affiliate disclosure
TradeOnDEX may earn a commission if you sign up or trade through a link on this page, at no extra cost to you. ApeX’s own affiliate/referral terms are still being confirmed for this site, so links here are direct and untracked for now. This article is educational and is not financial advice; leveraged trading carries substantial risk of loss, including the risk of forced liquidation. See our disclaimer for the full risk warning.
Risk warning
Trading crypto assets, and leveraged products based on them such as perpetual futures ("perps"), is high risk. A large share of retail traders lose money on these products. Leverage magnifies gains and losses alike and can push your loss beyond the amount you put in. Positions can be closed automatically (liquidation) before you get a chance to react, and some of the platforms we cover offer no negative balance protection.
Never trade with money you cannot afford to lose entirely. TradeOnDEX gives no investment advice, no personal recommendation, and no guarantee of any outcome. Every decision you make is your own decision and your own responsibility.