1 Users choose Mark price as the 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
2 Users choose the Latest price as the 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)
the direction of order: 1 for long order;-1 for short order





