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