Question

Why is my Closed PnL a loss, when my UPnL was positive?

Answer

Closed PnL and UPnL are calculated a little differently.

UPnL is an Estimate based on Last Traded Price and does not take into account any potential adverse market price impact and the resulting execution price when closing a position. Closed PnL reflects the Final PnL on a position, based on actual executions when closing the position and deducting trading and funding fees.