Skip to content

PnL (Profit & Loss)

Unrealized PnL

The unrealized gain or loss on a token you still hold.

Unrealized PnL = (Current price − Average buy price) × Quantity held

This value updates in real time as the token price moves.

Realized PnL

The gain or loss locked in after selling a token. Calculated by comparing your sell price with your average buy price.

Portfolio PnL

Your profile shows a chart tracking the evolution of your total portfolio value over time.

Available Periods

  • 24 hours
  • 7 days
  • 30 days

How It's Calculated

Portfolio value at any point in time:

Portfolio value = hUSD balance + Σ (quantity of each token × current token price)

Change over a period:

Absolute change = Current value − Value at start of period
Percentage change = (Current value − Starting value) / |Starting value| × 100

The starting hUSD balance is reconstructed by replaying your trade history:

Starting hUSD = Current hUSD + Total buys during period − Total sells during period

Haste Network Documentation