What is liquidation?

Liquidation is the process in which a platform reduces or closes positions under its rules when an account or position no longer meets collateral or other risk requirements. It can reduce part of a position or end the whole position. Platform risk rules trigger it without requiring the trader to submit another closing order.

What triggers liquidation?

Leveraged trading uses margin as collateral. Including unrealized results on open positions produces equity; the platform then determines the eligible equity recognized as collateral. Maintenance margin is the minimum collateral required to keep a position open.

Adverse price moves, fee payments or falling collateral values can reduce eligible equity. When equity cannot cover maintenance requirements and applicable fees, the platform enters risk handling under its rules. An unrealized loss changes the equity valuation; it need not already be a transaction deducting cash from the balance.

For example, OKX’s contract rules use the mark price, a reference calculated under platform rules, for risk valuation rather than only the last trade. Account modes also determine which assets and positions enter the calculation; see margin.

Why can liquidation occur before all margin is lost?

Keeping a position open requires collateral to remain. The platform does not wait until equity reaches zero to address risk.

For example, in a hypothetical state excluding fees, eligible position equity is 5 USDT and the maintenance requirement is also 5 USDT. They are already equal: equity remains, but there is no surplus above the requirement. USDT is the denomination asset. Actual triggers also include product-specific fees and threshold conditions.

Using current position and account conditions, one can estimate the price at which liquidation may be triggered: the estimated liquidation price. It changes with equity and positions and is not a guaranteed execution level. Its derivation is explained in that entry.

How does a platform handle insufficiently collateralized positions?

The aim is to reduce position risk until remaining collateral meets requirements, or end positions that can no longer be maintained. OKX’s staged handling explanation, for example, includes:

  1. Cancel capacity-reserving orders: at the relevant risk stage, cancel some unfilled orders and release unnecessary reservations. This does not reverse executed positions.
  2. Reduce part of the position: close some quantity under the rules, then recalculate maintenance requirements and equity for the remainder. Further reductions can stop if requirements are met again.
  3. Continue closing: if collateral remains insufficient, continue handling until rules are satisfied or the position is fully closed.

Actual steps and thresholds depend on the product. Advance notice or time to add margin cannot be assumed. Orders executed in the market also face available buy and sell quotes and quantities; final execution prices can differ from the trigger reference.

Closed quantities do not automatically return if the market later rebounds. After a partial close, the remaining position continues to generate gains or losses.

How are liquidation costs and excess losses handled?

Liquidation can incur trading fees, liquidation fees or other rule-based handling costs. They affect final remaining equity. Product rules determine the applicable items and calculation bases.

With fast price changes, closing losses can exceed collateral available for the position, leaving a loss shortfall, commonly called a negative-equity shortfall. An applicable insurance fund may address some shortfalls under its rules. This differs from refunding the trader’s lost margin.

Product-defined risk conditions can also activate auto-deleveraging (ADL): the system selects opposite-side positions under its rules, matches them with positions being handled, and reduces quantities on both sides. This can affect counterparties not being liquidated for insufficient collateral themselves. Activation is not determined solely by whether a fund balance is zero.

How do liquidation, stop-loss and expiry settlement differ?

All three can end a position, but for different reasons. Liquidation follows collateral or other risk conditions; a stop-loss follows a trader’s preset exit condition; expiry settlement follows the contract’s expiry rules.

After a stop-loss condition is met, a subsequent order must still be submitted and executed. Setting a stop-loss does not guarantee completion before liquidation. Expiry settlement applies to dated contracts, not handling insufficient collateral. See expiry futures for the mechanism.

Which assets can liquidation affect?

The scope first depends on collateral allocation. Isolated margin usually allocates collateral separately to a specified position; cross margin shares collateral within defined limits, so other assets and positions can participate in risk calculations.

For example, OKX’s relevant contract explanation applies isolated handling to margin allocated to that position. Cross handling can involve shared trading-account margin; funding-account assets are outside the deduction scope described there. Automatic margin additions, fees and negative-balance handling still require product-specific checks. One account mode’s outcome is not a universal platform loss limit.

Explore margin, estimated liquidation price and insurance funds, or return to the crypto glossary.

References

Disclaimer
This content is provided for informational purposes only and may cover products that are not available in your region. It is not intended to provide (i) investment advice or an investment recommendation; (ii) an offer or solicitation to buy, sell, or hold crypto/digital assets, or (iii) financial, accounting, legal, or tax advice. Crypto/digital asset holdings, including stablecoins, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding crypto/digital assets is suitable for you in light of your financial condition. Please consult your legal/tax/investment professional for questions about your specific circumstances. Information (including market data and statistical information, if any) appearing in this post is for general information purposes only. While all reasonable care has been taken in preparing this data and graphs, no responsibility or liability is accepted for any errors of fact or omission expressed herein.

Digital Assets subject to volatility and not insured. Not financial/investment advice. Not all products and services offered in all regions. Exclusions and T&Cs apply.

© 2026 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2026 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2026 OKX.” Some content may be generated or assisted by artificial intelligence (AI) tools. No derivative works or other uses of this article are permitted.

Related articles

View more
Generic charts thumbnail

What is a fill-or-kill (FOK) order?

**Fill or kill (FOK) is an execution condition requiring the entire order to fill immediately or be canceled in full.** It accepts no partial fill and leaves no unfilled quantity waiting for another o
Nov 12, 2026
thumbnail:bullish-calendar-spread-strategy

What is a maker?

**A maker is the party that first provides a quote in an order book and later trades when another order matches it.** An order book records unfilled buy and sell quotes and their quantities. In order-
Nov 12, 2026
trade-academy-beginner-4

What is a taker?

**A taker is the party that immediately matches and trades against a quote already in the order book.** The order book records unfilled buy and sell quotes and their quantities. A taker accepts one of
Nov 12, 2026
Options trading generic thumb

What is the bid-ask spread?

**The bid-ask spread is the difference between the lowest ask and highest bid in the same market at the same time.** In an order-book-based crypto market, it describes the distance between the closest
Nov 12, 2026
Forward Contracts vs. Futures Contracts What Are the Differences

What is a post-only order?

**A post-only order adds a requirement to a limit order: post a quote without immediately taking an existing one.** In order-book-based crypto spot and derivatives markets, the order book records unfi
Nov 12, 2026
thumbnail:arbitrage-order

What is an immediate-or-cancel (IOC) order?

**An immediate-or-cancel (IOC) order requires the quantity currently available to fill immediately, with any unfilled remainder canceled.** In order-book-based crypto markets, the order book records u
Nov 12, 2026
View more