1. Unrealized profit/loss
The unrealized profit/loss refers to the gain of the user’s open position, and the expected gain/loss after closing the current position according to the reasonable marker price, which changes with the fluctuation of the reasonable marked price.
Long unrealized gain/loss = face value * number of positions * (current marked price - average price of open positions)
Short unrealized gain/loss = face value * number of positions held * (average price of opening position - current marked price)
2. Realized profit and loss
Realized gain/loss refers to the real gain/loss that occurs after closing a position, calculated based on the user’s opening price and closing price.
Long realized gain/loss = face value * number of closed positions * (closed transaction price - average opening price)
Realized gain/loss on short positions = Nominal value * Number of closed positions * (Average opening price - closing price)