Docs / Reference
Journal accounting
How realized PnL, fees and funding are counted, and what history is available.
Convention
net realized = Σ closedPnl − Σ fees + Σ funding
- closedPnl is the venue's field: the price result of the closing part of a fill, before fees.
- fee is reported separately per fill and subtracted exactly once.
- funding payments are separate hourly records, negative when paid.
Checked on 2026-11-27 against real closing fills from four accounts: in every case closedPnl equalled (exit price − entry price) × size exactly, with the fee outside it. That is why fees are not also deducted from PnL.
Partial fills, increases, reversals
- Each execution is one row. An order that fills in several pieces produces several rows.
- Increasing a position realizes nothing; its entry price becomes the size-weighted average.
- A partial close realizes PnL on the closed size only.
- A reversal is one fill that closes the old side (realizing its PnL) and opens the new side at the fill price. The venue labels it "Long > Short" or "Short > Long".
For a real account, the venue's own figures are shown, not recomputed. The paper simulator applies the same average-cost rules itself, and they are unit-tested.
What history is available
Hyperliquid returns at most 2,000 fills per request and keeps only the 10,000 most recent available. The journal shows the most recent 2,000 and funding for the last seven days. Older records may be missing; the journal says so rather than presenting a partial total as a lifetime figure.
Notes, tags and CSV
Notes and strategy tags are stored in this browser only. The CSV export contains these columns:
time_utc, source, kind, market, action, side, price, size, notional_usdc, closed_pnl_before_fees, fee, funding, net, liquidity, venue_hash, tags, note
Free text is quoted, and a leading =, +, - or @ in a note is neutralised so a spreadsheet does not run it as a formula.