calculatePositionPNL = BaseAssetAmount * (Avg Exit Price - Avg Entry Price)
BaseAssetAmount : Precision QUOTE_PRECISION
(adds unrealized funding payment pnl to result)
Generated using TypeDoc
calculatePositionPNL = BaseAssetAmount * (Avg Exit Price - Avg Entry Price)
Returns
BaseAssetAmount : Precision QUOTE_PRECISION