A liquidation occurs when a trader’s account equity falls below the maintenance margin required to keep their positions open. Pacifica employs a three-tiered liquidation process designed to minimise market disruption and give positions the best chance of partial recovery before fully transferring collateral to the backstop liquidator.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pacifica-fi/docs-migrate/llms.txt
Use this file to discover all available pages before exploring further.
Liquidation Price Formula
Liquidation occurs when account equity falls below the maintenance margin of all open positions. Maintenance margin is always 50% of the initial margin fraction (1 / max_leverage). The liquidation price for a position is:
side = 1for long positions,-1for short positionsposition_marginisaccount_equityfor cross-margin positionspriceshould be the currentmark_pricewhenaccount_equityalready reflects unrealized PnL
position_margin is drawn from the shared equity pool — meaning losses on other positions reduce the effective margin available to this position and move its liquidation price in real time.Three-Tiered Liquidation Process
Tier 1 — Market Liquidation
- All open orders, including those that would reduce exposure, are cancelled.
- The position is broken into chunks and sent as IOC market orders into the order book, placed as close to the backstop liquidation price as possible to avoid immediately triggering Tier 2.
- Chunk sizing is dynamic based on market leverage:
max(0.75%, maintenance_margin_ratio × 0.4) of the liquidated notional is deducted by the liquidation engine.If enough of the position is closed to restore the account above maintenance margin, the remainder stays with the trader as a partial liquidation.Tier 2 — Backstop Liquidation
URNM, GOLD, SILVER, PAXG, CL, COPPER, NATGAS, EURUSD, USDJPY, NVDA, TSLA, PLTR, SP500, GOOGL, CRCL, HOOD, MEGA, BP.Tier 3 — Auto-Deleveraging (ADL)
Spot Insolvency Deleveraging
Unified margin accounts can hold negative USDC balances backed by spot collateral. If a borrower’s spot collateral value becomes insufficient to support their USDC debt and perpetual margin requirements, a separate deleveraging path unwinds spot positions. This is distinct from the perpetual liquidation process. Spot deleveraging runs in two modes:| Mode | Trigger |
|---|---|
| Account-level | An individual borrower’s spot collateral no longer covers their USDC debt and/or perpetual initial margin. |
| Pool-level | Money-market utilisation reaches ≥ 95%. Deleveraging proceeds from the largest borrowers first, targeting a return to 90% utilisation. |
Why Your Liquidation Price May Have Changed
The liquidation price displayed in the UI is a conditional estimate based on the current state of all your positions and equity. Several factors can cause it to shift unexpectedly:Cross Margin Losses
Funding Rate Payments
Mark Price Movement
Dynamic Margin Adjustment
How to Avoid Liquidation
- Monitor your margin ratio regularly, especially during volatile markets. The portfolio page displays your current equity, maintenance margin, and margin ratio in real time.
- Use isolated margin for high-conviction single-position trades where you want a predictable, stable liquidation price that is not affected by other positions.
- Avoid holding multiple correlated positions at high leverage on cross margin. Losses compound across the shared equity pool during correlated market moves.
- Set stop-loss orders — preferably stop-market orders — to close positions before they reach the liquidation threshold. Stop-limit orders may not fill if the market gaps through the limit price.
- Use the reduce-only flag on closing orders to ensure they can never inadvertently open a new position in the opposite direction.
- Add margin to an isolated position or deposit additional USDC to improve your equity ratio before it falls to critical levels.
Frequently Asked Questions
Why was I liquidated if the price shown on the chart didn't reach my displayed liquidation price?
Why was I liquidated if the price shown on the chart didn't reach my displayed liquidation price?
Will I always lose all my collateral in a liquidation?
Will I always lose all my collateral in a liquidation?
What happens to my other open orders when liquidation begins?
What happens to my other open orders when liquidation begins?
Can I be liquidated even if the market briefly touches my liquidation price and then recovers?
Can I be liquidated even if the market briefly touches my liquidation price and then recovers?
What is auto-deleveraging (ADL) and does it affect me?
What is auto-deleveraging (ADL) and does it affect me?