The green or red number beside a perpetual-futures position is only part of the result.
Price movement changes unrealized PnL. Executed orders add trading fees or maker rebates. Funding can debit or credit the account while the position stays open. To understand what a position has actually done to the account, you need all three.
The short version
For an open position, start with this reconciliation:
Net account effect = price PnL + funding received or paid + trading fees or rebates
Deposits and withdrawals must be kept separate. They change account value, but they are not trading performance.
1. Price PnL starts with entry price and mark price
For a linear perpetual position, unrealized PnL is driven by the difference between the entry price and the current mark price, multiplied by the position size and direction.
On Hyperliquid, the documented formula is:
unrealized PnL = side × (mark price - entry price) × position size
The side is positive for a long and negative for a short. This means the same price move has opposite effects on long and short positions.
Mark price matters here. It is designed to be a robust estimate of the perpetual contract's fair price and is used for unrealized PnL, margining, liquidations and take-profit or stop-loss triggers. The last traded price can differ from it.
2. Trading fees attach to execution
Every filled order can change the account even when the market has barely moved.
A taker order normally pays a fee for immediate execution. A maker order may pay a lower fee or receive a rebate, depending on the venue and the account's fee tier. Opening, reducing, closing and reversing a position can each create fee entries.
This is why a position that appears flat on price can still have a negative account effect after several executions.
Do not estimate this cost from the current position alone. Use the actual fills and fee records.
3. Funding continues while the position is open
Perpetual contracts do not expire. Funding payments help keep the contract price close to the underlying spot reference.
On Hyperliquid, funding is exchanged hourly between long and short holders. A positive rate means longs pay shorts. A negative rate means shorts pay longs. The payment depends on position size, oracle price and the funding rate for that interval.
Funding can therefore pull the account result away from the price-only result. A profitable long can still pay funding. A losing short can receive it. Funding is a cash flow, not a directional signal by itself.
A worked example
Suppose an illustrative account holds a long position of 0.10 BTC:
- Entry price: $70,000
- Current mark price: $71,000
- Price PnL: +$100
- Trading fees paid so far: -$4.50
- Net funding paid: -$2.00
- Hyperliquid Docs: Entry price and PnL
- Hyperliquid Docs: Robust price indices
- Hyperliquid Docs: Funding
- Hyperliquid Docs: Fees
- Hyperliquid Docs: Portfolio graphs
The position shows +$100 of unrealized price PnL, but its net effect on the account so far is approximately +$93.50.
That figure will change with the mark price and any later funding or execution. It is an example, not a forecast or a trade recommendation.
How to reconcile one position in Fensory
Open Portfolio and use this order:
1. Read the position. Note the side, size, entry price, mark price and unrealized PnL.
2. Check funding history. Add the payments received and subtract the payments paid while the position was open.
3. Check order history. Use the actual fills and recorded fees. Include every execution that opened, changed or reduced the position.
4. Separate transfers. Deposits and withdrawals explain changes in account value, but they do not belong in trade PnL.
5. Match the time window. A seven-day position result should be compared with fees and funding from the same seven days.
This review is more useful than looking at one headline number. It shows whether the result came from the market move, repeated execution, the cost of holding the position, or a combination of the three.
Portfolio graphs are summaries, not ledgers
Hyperliquid's portfolio documentation notes that account-value and PnL graphs use samples. They are useful for seeing direction across 24-hour, seven-day and 30-day windows, but they are not a substitute for precise accounting.
When a number needs to be explained exactly, return to the position, funding and execution records.
Reconcile one position in Portfolio
Sources
_Educational product guidance only. Not financial advice. Perpetual futures use leverage and can lose value quickly._