Download your trade history from Hyperliquid
Open Hyperliquid Portfolio and check which trading account is selected. In Trade History, select Export as CSV. For funding payments, open Funding History and use its Export as CSV control.
The Trade History screen shows fields such as Time, Market, Direction, Fee, and Closed PNL. Funding History shows fields such as Time, Market, Payment, and Rate. In each downloaded file, check the actual headers, whether the timestamps specify a time zone, and the first and last dates covered.
Export trades, funding, and transfers from Perpex
- Open Perpex Portfolio in a browser and connect the account you want to check.
- In History, select Trades and choose Export CSV.
- For funding and transfers, switch to Funding or Transfers and look for Export CSV. Check the headers in each file to confirm which type of record you saved.
| Tab | What to check in the file |
|---|---|
| Trades | Perpex combines recent Hyperliquid fills with stored orders when those are available. The recent source returns up to 2,000 fills. The export can cover only recent activity if stored orders are unavailable. Compare the first and last time_utc values with the period you need. |
| Funding | Perpex’s web export code keeps available funding payments from the previous 30 days at the time it fetches them. Check the market, funding_rate, and payment_usdc. Perpex copies the signed source payment into payment_usdc without converting its currency. |
| Transfers | The export includes available transfer records from Hyperliquid and HyperUnit. Check the dates, asset, amount in that asset, status, and any transaction hash. |
Which CSV fields should you keep?
Keep the original headers and values. Preserve the market code as exported, even if it looks different from the market name on screen.
| Perpex file | CSV headers |
|---|---|
| Trades | time_utc,market,action,size,avg_price,value_usd,fills,fee_usd,closed_pnl_usd |
| Funding | time_utc,market,size,funding_rate,payment_usdc |
| Transfers | time_utc,type,asset,amount,status,hash |
These are the headers used by Perpex’s web export code. Suffixes such as _usd and _usdc are part of the column names and do not guarantee a currency conversion. time_utc is in UTC, and action values in Trades can vary with the interface language.
An order is an instruction to buy or sell. A fill is a piece that actually traded. A Trades row summarizes the available fills for an order. Its timestamp is the last recorded fill time, its size is the executed quantity, and its average price is weighted by fill size. To calculate value_usd, Perpex multiplies the quantity traded in each fill by its price and adds the results. In a spot pair, the base token is what you buy or sell, and the quote token is what the price is measured in. For example, two units at 20 USDH each give a value of 40 USDH. The CSV writes 40.00 without converting it to dollars. The fills column counts the fill records used in that summary. The recent Hyperliquid API source can combine some partial fills before Perpex receives them.
Synthetic example. An order fills for one unit at 20 and two units at 23. The summary has size of 3, fills of 2, and avg_price of 22. The two fills still have their own execution times in a fill-level source.
To check the units, compare the CSV with the original trade records. Check the pair for the token used to price the trade and the raw fill for the fee token. Keep the raw source alongside Perpex Trades for order IDs, fill IDs, fee tokens, and transaction hashes when available. For a transfer, keep the asset and status with the amount in that asset. If you have a HyperCore transaction hash, you can look it up in the Explorer.
Realized PnL, funding, and fees
Realized PnL
Perpex exports Closed PnL as closed_pnl_usd in Trades, summing the source closed PnL values for the recorded fills without converting their currency. When you close part of a perpetual position, realized PnL refers to the result associated with that portion. Keep closed PnL, funding, and fees in their respective units. An open position’s changing PnL and an account-wide PnL figure answer different questions. Check how each source treats fees before combining fields. Hyperliquid PnL docs
Funding payments
Funding is a periodic payment between the two sides of an open perpetual position. In your funding file, identify the amount received or paid, check its currency, and keep the sign. Save the rate alongside the payment when both are present. The funding rates page shows market rates. Hyperliquid funding docs
Trading fees
The fee_usd column in Trades adds up the fees from the fills in that row. On a spot buy, Perpex multiplies the fee by the fill price if the recorded fee token is something other than USDC. For a spot buy from the archive, Perpex also multiplies by the fill price if the fee-token field is blank. In the remaining cases, including spot sells, Perpex adds the source fee amount directly. Perpex applies no exchange rate to convert the total to US dollars. If you have the original fill records, keep fee and feeToken together and check the units before comparing totals. Hyperliquid fees explained · Perpex fee terms
Check for missing dates and save your files
Write down the source, account or sub-account, download date, time zone if specified, earliest and latest timestamps, row count, and known gaps. Count data rows without the header. Compare the range with the dates you traded. An export can contain gaps even when its first and last timestamps span the period you need. A gap can also be a period with no activity. For older fills, Hyperliquid’s historical data documentation lists an independently maintained exporter. Check any additional file against the period you need.
Keep original files separately and import copies into Excel or Sheets. Preserve the original timestamps and decimal precision, and import IDs as text. For overlapping exports, compare source, account, and available stable IDs. Keep ambiguous matches for review, since identical times and amounts can describe different records.
Common questions about Hyperliquid CSV exports
How do I check a sub-account or save a longer period?
Before exporting, confirm which account is visible on screen. If you manage several accounts, label each file with the account you had selected and compare its dates with that account’s records. To build a longer record going forward, save exports regularly and check where their dates overlap. If an older period is missing, check another source for that period.