Realized P&L is calculated as:
LONG position
- Realized P&L = Closed Quantity * (Closing Price - Average Entry Price)
SHORT position
- Realized P&L = Closed Quantity * (Average Entry Price - Closing Price)
Example
Assuming that the Trader enters into a long position on 0.1 BTCUSDT perpetual swap contracts at 30,000 USDT.
If the BTCUSDT perpetual swap position closes at 36,000 USDT
The Realized P&L is calculated as:
- Realized P&L = 0.1 BTC * (36,000 - 30,000) USDT = 600 USDT
If the BTCUSDT perpetual swap position closes at 24,000 USDT
The Realized P&L is calculated as:
- Realized P&L = 0.1 BTC * (24,000 - 30,000) USDT = -600 USDT