Market Cap: $2.2043T 0.58%
Volume(24h): $56.8553B 3.76%
Fear & Greed Index:

39 - Fear

  • Market Cap: $2.2043T 0.58%
  • Volume(24h): $56.8553B 3.76%
  • Fear & Greed Index:
  • Market Cap: $2.2043T 0.58%
Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos
Top Cryptospedia

Select Language

Select Language

Select Currency

Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos

How Does OKX Mark Price Work? Why Is Liquidation Based on Mark Price?

OKX’s mark price uses weighted median feeds, outlier filtering, funding adjustments, and on-chain verifiable off-chain computation to ensure fair, resilient liquidations and PnL valuation.

Aug 10, 2026 at 02:20 pm

Mark Price Mechanism Design

1. OKX calculates mark price using a weighted median of multiple external price feeds, including major spot exchanges and institutional data providers.

2. The system excludes outliers beyond three standard deviations to prevent manipulation from flash crashes or pump-and-dump events on any single source.

3. For perpetual contracts, the mark price incorporates a time-weighted funding rate component to reflect fair value convergence with underlying spot markets.

4. Each contract pair maintains its own independent mark price engine, with parameters dynamically adjusted based on real-time volatility and liquidity metrics.

5. All mark price computations occur off-chain in OKX’s proprietary risk engine, then validated on-chain via cryptographic proofs for transparency.

Liquidation Trigger Logic

1. Liquidation is triggered when a user’s margin balance falls below maintenance margin level, calculated against the current mark price—not last traded price.

2. Using mark price prevents liquidations caused by short-term price spikes that do not represent true market consensus, reducing false positives during high-volatility events.

3. The mark price ensures uniform liquidation thresholds across all users, eliminating arbitrage opportunities that could arise from disparate pricing sources.

4. OKX’s liquidation engine recalculates position health every 200 milliseconds, synchronizing with mark price updates to maintain precision under rapid market movement.

5. When liquidation occurs, the system executes at the best available price within the order book, but the trigger condition remains strictly bound to the mark price threshold.

Comparison With Index Price Approaches

1. Unlike index-based models that aggregate spot prices without filtering mechanisms, OKX’s mark price applies adaptive weighting to prioritize deeper, more stable liquidity sources.

2. The platform excludes low-volume or non-compliant exchanges from its feed list, maintaining strict onboarding criteria updated quarterly.

3. OKX’s mark price includes a decay factor for stale quotes, ensuring no source contributes beyond 60 seconds without refresh.

4. Historical backtesting shows OKX’s implementation reduces forced liquidations during flash crash scenarios by 47% compared to pure index methodologies.

5. The system logs every mark price computation with timestamped audit trails accessible to institutional clients under compliance agreements.

Risk Engine Integration

1. Mark price feeds directly into OKX’s real-time margin monitoring subsystem, which processes over 12 million margin checks per second during peak load.

2. The risk engine enforces hard circuit breakers: if mark price deviation exceeds 5% from the previous 30-second moving average, trading halts for recalibration.

3. All perpetual contract positions are revalued using mark price every 500 milliseconds, feeding updated equity values into auto-deleveraging logic.

4. During extreme market stress, OKX activates tiered fallback modes—switching to a narrower feed set or applying tighter outlier filters—without manual intervention.

5. The mark price infrastructure operates independently from matching engines, ensuring liquidation decisions remain unaffected by order book imbalances or latency spikes.

Frequently Asked Questions

Q1: Does OKX adjust mark price during scheduled maintenance windows?OKX does not modify mark price calculation logic during maintenance; the system runs continuously with redundant nodes across geographically dispersed data centers.

Q2: Can users access raw mark price components before aggregation?Yes, OKX provides full transparency via its public API endpoint /api/v5/public/mark-price-components, listing all contributing sources, weights, and timestamps.

Q3: How often are mark price parameters reviewed and updated?Parameter configurations undergo automated weekly validation, with human-led quarterly reviews involving third-party quant auditors and exchange partners.

Q4: Is mark price used for profit-and-loss calculations in addition to liquidation?Yes, unrealized PnL for all perpetual contracts is computed exclusively against mark price, ensuring consistent valuation across positions and avoiding discrepancies from last trade anomalies.

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Related knowledge

See all articles

User not found or password invalid

Your input is correct