How to calculate unrealized PNL and ROE%

How to calculate unrealized PNL and ROE%

  • Users choose mark price as price basis:

Unrealized PNL = position size * direction of order * (mark price - entry price)

ROE% =Unrealized PNL in USDT / entry margin = ( ( mark price - entry price ) * direction of order * size ) / (position_amount * contract_multiplier * mark_price* IMR)

*IMR = 1/Leverage

  • Users choose latest price as price basis:

Unrealized PNL = position size * direction of order * (latest price - entry price)

ROE% = Unrealized PNL in USDT / entry margin = ( ( latest price - entry Price ) * direction of order * size ) / (position_amount * contract_multiplier * mark_price* IMR)

Direction of order: 1 for long order;-1 for short order.

Last updated