IEXLENS

PnL (profit and loss)

PnL is the money you have made or lost on a position. While the position is open it is called unrealized PnL, and after you close it is called realized PnL.

Unrealized PnL is calculated from the price difference alone and does not include fees. Realized PnL is the final figure after subtracting entry and closing fees and funding fees. That is why an unrealized PnL that was positive can turn negative once you close.

IEXLENS mock trading works the same way. An open position shows the price PnL, and below it the actual PnL 'if you close now' is shown separately.

Example

Price PnL for a long = (closing price − entry price) × quantity. Actual PnL = price PnL − entry fee − closing fee.

The fastest way to learn it is to place an order with virtual funds.Try mock trading

These explanations are general educational information, not investment advice. Calculation methods can differ by exchange.