PnL calculation

Oct 28, 2025

In Futures trading, profit and loss (PnL) are categorized into 2 types:

  • Unrealized PnL: The floating profit or loss of an open position based on the mark price.

  • Realized PnL: The confirmed profit or loss generated from actions such as closing a position, liquidation, or funding fee settlement.

(I) Unrealized PnL

Unrealized PnL is calculated based on the Mark Price and reflects the current floating profit or loss of a position.

Formula:

  • Long position: Unrealized PnL = (Mark Price − Average Entry Price) × Position Size

  • Short position: Unrealized PnL = (Average Entry Price − Mark Price) × Position Size

Notes:

  • The mark price is used to prevent misjudgment caused by abnormal transaction prices, and liquidation is triggered based on the mark price.

Example:

  • A user buys 1 BTC (long) at $100,000, and the current mark price is $101,000: → Unrealized PnL = (101,000 − 100,000) × 1 = +$1,000

  • Under the same conditions for a short position: → Unrealized PnL = (100,000 − 101,000) × 1 = –$1,000

(II) Realized PnL

Realized PnL refers to the profit or loss that has been finalized after closing a position or through funding rate settlement.

(1) PnL from closing a position

Formula:

  • Long position: Realized PnL = (Close Price − Average Entry Price) × Position Size

  • Short position: Realized PnL = (Average Entry Price − Close Price) × Position Size

For long positions: profits occur when prices rise.

For short positions: profits occur when prices fall.

Example: A user buys 1 BTC at $100,000 and later sells to close at $102,000: → Realized PnL = (102,000 − 100,000) × 1 = +$2,000

(2) Funding PnL

During funding fee settlement, long and short traders periodically pay or receive funding fees based on the funding rate.

Formula: Funding PnL = Position Notional Value × Funding Rate

Example: If the funding rate is +0.01% and a user holds a long position worth $10,000: → Funding PnL = 10,000 × 0.0001 = –$1 (paid to short positions)

(3) Liquidation or fee-related PnL

The liquidation fee charged by the system or any trading fees incurred during the transaction will also be recorded as realized PnL.


(III) Total PnL

The total PnL of an account is the sum of realized and unrealized PnL:

Total PnL = Realized PnL + Unrealized PnL

On the OSL trading interface, the system displays in real time:

  • Floating PnL (Unrealized PnL) for each position

  • PnL from closed positions (Realized PnL)

  • Total account PnL and ROI

If you experience any issues or require further assistance, please contact the OSL Global Support Team through the app, platform, or by emailing [email protected]