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

What Is OKX Unrealized Profit and Loss? Complete Calculation Guide

Unrealized PnL on OKX is the real-time, theoretical gain/loss on open positions—calculated from mark price vs. entry, affecting margin but not wallet balance until closure.

Aug 07, 2026 at 08:59 pm

Definition and Core Mechanics

1. Unrealized profit and loss (PnL) on OKX refers to the theoretical gain or loss calculated from open positions without actual settlement.

2. It reflects the difference between current market price and entry price multiplied by position size and contract multiplier.

3. This metric is updated in real time as mark price fluctuates, appearing instantly in the user’s wallet dashboard.

4. Unlike realized PnL, unrealized PnL remains subject to change until position closure or liquidation.

5. For perpetual contracts, funding payments do not affect unrealized PnL but influence wallet balance separately.

Calculation Methodology Across Instruments

1. For linear perpetuals: Unrealized PnL = (Mark Price − Entry Price) × Position Size × Contract Multiplier.

2. For inverse perpetuals: Unrealized PnL = (1 ÷ Entry Price − 1 ÷ Mark Price) × Position Size × Contract Multiplier × Base Currency Notional.

3. In spot margin trading: Unrealized PnL = (Current Quote Price − Average Buy Price) × Holdings Quantity.

4. For options: Unrealized PnL = (Current Option Market Price − Premium Paid) × Number of Contracts × Lot Size.

5. Cross-margin mode applies portfolio-wide margin calculation, yet each asset’s unrealized PnL is computed independently using its own pricing feed.

Impact on Margin and Risk Management

1. Unrealized PnL directly alters available margin — positive values increase usable margin, negative values reduce it.

2. When unrealized loss exceeds maintenance margin level, a margin call triggers automatically.

3. Liquidation engine uses mark price—not last traded price—to compute real-time unrealized PnL for risk assessment.

4. Insurance fund does not absorb unrealized losses; it only covers realized shortfall after liquidation.

5. Auto-deleveraging activates when unrealized losses accumulate across multiple positions and exceed system-wide buffer thresholds.

Display and Accounting Treatment

1. OKX displays unrealized PnL in both base currency and USD equivalents on the “Positions” tab.

2. Historical unrealized PnL snapshots are archived per position lifecycle and accessible via API endpoints.

3. No accounting entry is made until position close; unrealized PnL remains off-balance-sheet per IFRS 9 standards.

4. Tax jurisdictions generally exclude unrealized PnL from taxable events unless marked-to-market election applies.

5. Portfolio margin mode aggregates unrealized PnL across all derivatives, enabling netting effects during margin evaluation.

Frequently Asked Questions

Q: Does unrealized PnL affect my wallet balance before closing?A: No. Only realized PnL updates wallet balance. Unrealized PnL appears as a separate line item and influences margin availability but not actual fund transfer.

Q: Why does my unrealized PnL differ from what I see on third-party charting tools?A: OKX uses proprietary mark price methodology—blending index price, funding rate, and fair basis—while external tools may rely solely on last trade or Binance/Bybit feeds.

Q: Can I withdraw funds corresponding to positive unrealized PnL?A: No. Withdrawals require realized equity. Positive unrealized PnL increases margin utilization capacity but cannot be withdrawn until position settlement.

Q: Is unrealized PnL reset after a forced liquidation?A: Yes. Upon liquidation, the position closes at bankruptcy price, converting all unrealized PnL into realized PnL. The unrealized field resets to zero for that position.

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