Entry price and PnL
Your positions show an average or entry price and a profit and loss (PnL). This page explains how each is worked out, for spot holdings and for perp positions.
Spot holdings
| Average price | The size-weighted average of the prices you bought at. Selling does not change it. |
| Position value | Units held × the market’s current price |
| Unrealized PnL | (Current price − average price) × units held |
| PNL % | Unrealized PnL ÷ (average price × units held) |
| Realized PnL | When you sell: (sale price − average price) × units sold |
Perp positions
| Entry price | The size-weighted average of the fills that opened or added to the position. Reducing or closing part of it does not change it. |
| Unrealized PnL | Long: size × (mark price − entry price). Short: size × (entry price − mark price). |
| ROE % | Unrealized PnL ÷ the position’s margin, its return on equity |
| Realized PnL | When you reduce or close: the size closed × the move from the entry price to the fill price, positive when it moves your way |
Unrealized PnL uses the mark price, the same price that drives margin and liquidation. If one order takes you from long to short, or the other way, the old position closes and the new one starts with its entry price at the fill price. Fees and funding are paid from your balance, separately from a position’s PnL.
On a perp, the gain and loss percentages you can set on a take profit or stop loss use the same return on margin, so a 10% gain at 5x leverage is a 2% move in the price.
Examples
These examples are illustrative and leave out fees and funding.
Spot. You buy 100 units at 10.00 USD and then 100 more at 12.00 USD, so your average price is 11.00 USD. You sell 50 units at 13.00 USD: your realized PnL is 50 × 2.00 = US$100, and your average price stays 11.00 USD. With the price at 12.00 USD, your 150 remaining units show an unrealized PnL of 150 × 1.00 = US$150, or 9.1%.
Perp. You open a 5x long of 1,000 units at 20.00 USD, posting US$4,000 of margin. You add 500 units at 23.00 USD, which brings your entry price to 21.00 USD and your margin to US$6,300. With the mark price at 22.00 USD, your unrealized PnL is 1,500 × 1.00 = US$1,500, an ROE of about 23.8%.