ui icon indicating copy to clipboard operation
ui copied to clipboard

Unrealized PnL wrong or confusing.

Open Boibit opened this issue 1 year ago • 2 comments

image

Smashball is the reported outcome of this market but I have negative unrealized PnL for the position in my portfolio.

Not sure if this is calculating total PnL of the entire market. I did have positions that were sold for a loss or held to 0 in the same market. If this is calculating the total PnL of the market, then it's confusing and counter intuitive. If not, this is a bug.

Boibit avatar May 24 '24 11:05 Boibit

Maybe because price is incorrect

Robiquet avatar May 28 '24 14:05 Robiquet

Issue seems to be caused by incorrect price shown. The curent formula for calculating unrealized PnL is: currentMarketPrice - avgCost) * totalQuantity

robhyrk avatar Jun 04 '24 19:06 robhyrk