Hyperliquid Trade Data: Fills, Volume, Liquidations and HIP-3 Markets, Measured Correctly
What a Hyperliquid trade record contains, where to get the history, and how to measure volume, fees, liquidations, TWAP execution, builder codes and HIP-3 builder markets without double counting.
Hyperliquid trade data is the record of every executed match on Hyperliquid's on-chain order book: which market traded, at what price and size, which wallets were the maker and the taker, what fee each paid, and whether the fill opened or closed a position, was part of a TWAP, or was a liquidation. Because every Hyperliquid trade produces one fill per side, a trade dataset is really a fill dataset, and most of the mistakes made with it come from forgetting that.
That data has become more interesting in the past year. Since HIP-3 went live on October 13, 2025, any team staking 500,000 HYPE can deploy its own perpetual markets on Hyperliquid's order book, and builder-deployed markets have grown to roughly 44% to 51% of the platform's volume in recent reporting (Crypto Briefing, KuCoin). Equity and commodity perps now trade beside crypto. Any study of where Hyperliquid volume comes from now has to tell those markets apart.
This guide covers what a Hyperliquid fill contains, where the history comes from, and how to measure volume, fees, liquidations, TWAP execution, builder codes and HIP-3 markets correctly. Every query runs as written in DuckDB against the Hyperliquid historical data Parquet files, and every claim about the tables was checked against the published schema and free sample. For a column-by-column reference, see every table in the Hyperliquid historical dataset, explained.
What Is in a Hyperliquid Trade Record?
A trade is one match between two orders. A fill is one side's view of it. Hyperliquid reports fills, so every trade appears twice: once for the taker, whose order crossed the spread, and once for the maker, whose resting order was hit. Both rows share the same trade ID (tid), price and size, with opposite directions.
In the Hyperliquid Historical dataset, fills live in the swaps table, about 2.6 billion rows across 37 columns. The fields that matter for trade analysis:
| Group | Columns | What they tell you |
|---|---|---|
| Market | coin, market_type, dex | Which market traded. market_type separates spot from perpetual; dex names the venue the market belongs to. |
| Execution | px, sz, notional_usd, block_time | Price, size, USD notional and time of the fill |
| Identity | wallet, tid, oid, cloid, tx_signature | The wallet on this side, the trade ID shared by both sides, and the order IDs |
| Role | liquidity_role, is_taker | Maker or taker on this side |
| Position | direction, direction_type, position_action, position_side, start_position, closed_pnl | Whether the fill opened, added to, reduced or closed a position, and the realized PnL on closing fills |
| Fees | fee, fee_token, fee_is_rebate, builder, builder_fee | Exchange fee, its token, whether it was a rebate, and any builder-code fee |
| Execution style | is_twap, twap_id | Whether the fill was a slice of a TWAP order |
| Liquidation | is_liquidation, liquidated_user, mark_px, liquidation_method | Whether the fill was forced, whose position was liquidated, the mark price and the method |
Spot markets on Hyperliquid are named by index rather than ticker. The sample's spot fills trade @1, with input_mint and output_mint naming the tokens that changed hands (HFUN and USDC). Perpetuals use the asset name directly.
Where Hyperliquid Trade Data Comes From
There are four routes to the history, and they differ more than their descriptions suggest.
The Info API. userFills and userFillsByTime return fills for one wallet. Each response holds at most 2,000 fills, and only the 10,000 most recent fills per wallet are retained (GoldRush reference). Market-wide research would mean knowing every wallet in advance and accepting truncated histories for the active ones, which are usually the ones you care about.
The WebSocket trades feed streams new trades as they happen. It is a way to record history from now on, not a way to get the past.
The public node data on S3. Hyperliquid's historical data documentation points to node data that includes historical fills. The buckets are requester-pays, the files are compressed raw logs, and turning them into a typed table means parsing, deduplicating and validating formats that have changed over time. Our guide to where Hyperliquid historical data comes from walks through that route.
A prepared dataset. The swaps table is that work done: every available spot and perpetual fill, typed, partitioned by date, with both sides and all the fields above.
| Route | Scope | History | Effort | Best for |
|---|---|---|---|---|
| Info API | One wallet per call | Last 10,000 fills per wallet | Low per call, high at scale | Your own account, spot checks |
| WebSocket | Live market | None, from now forward | Medium | Building your own archive |
| S3 node data | Market-wide, raw | Back to the archive's start | High | Teams building their own pipeline |
| Prepared dataset | Market-wide, typed | The dataset's listed coverage | Low | Research across wallets and markets |
Measuring Volume Without Double Counting
Because every trade has two rows, a plain sum(notional_usd) reports twice the volume that traded. The sample shows it exactly: 100 rows, 50 distinct tid values, $6,447 of summed notional for $3,224 of actual trading. Count each trade once by keeping the taker side:
-- Daily traded volume by market. Taker rows count each trade once.
SELECT date_trunc('day', block_time) AS day,
market_type,
coin,
count(*) AS trades,
sum(CAST(notional_usd AS DOUBLE)) AS volume_usd
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE is_taker = 1
GROUP BY 1, 2, 3
ORDER BY 1, volume_usd DESC;Values are stored as exact Decimal(38,18). Cast to DOUBLE before aggregating large ranges, or keep decimals and cast the result, but do not multiply two decimal columns without casting first; that overflows.
Two adjustments make volume comparable with published figures. Separate market_type before comparing to "perp volume" headlines, since spot is counted differently by most trackers. And check whether a source reports one-sided or two-sided volume. Some dashboards count both sides, which doubles every number.
Not every wallet is a trader
In the sample, the address 0xffff…ffff is the maker on 32 of the 50 trades. An address of all f characters is not a user's key-derived wallet; treat it as a protocol address. Wallet-level studies (counting traders, ranking makers, building cohorts) should identify such addresses and handle them separately. Otherwise the largest "trader" in a spot market can turn out to be the protocol itself.
Maker and Taker Economics
Fees differ by side, so measuring trading cost means splitting by liquidity_role. One detail catches most first attempts: fees are not always charged in USDC. In the sample's spot market, fees appear in both HFUN and USDC, depending on the fill. Summing fee across tokens adds HFUN to dollars.
-- Effective fee rate by side, computed only where the fee is in USDC.
SELECT coin,
liquidity_role,
count(*) AS fills,
sum(CAST(notional_usd AS DOUBLE)) AS notional_usd,
sum(CASE WHEN fee_token = 'USDC' THEN CAST(fee AS DOUBLE) END)
/ sum(CASE WHEN fee_token = 'USDC' THEN CAST(notional_usd AS DOUBLE) END) * 1e4
AS usdc_fee_bps,
count(*) FILTER (WHERE fee_token <> 'USDC') AS fills_fee_in_other_token
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
GROUP BY 1, 2
ORDER BY 1, 2;On the sample, taker fills paid about 4.1 bps where the fee was in USDC, and 14 of the 50 taker fills paid in HFUN. To compare across tokens, convert each fee at the token's price at fill time; the fills themselves give you that price. fee_is_rebate marks fills where the maker was paid rather than charged, so a maker rebate shows up as income rather than a negative fee.
Realized PnL per wallet
closed_pnl is the profit or loss realized on a fill that reduced or closed a position, and start_position is the position before the fill. Together they let you follow a wallet's trading without reconstructing its positions from scratch. Two cautions apply. Exchange fees are reported separately in fee, and perpetual funding payments live in a different table entirely, so a wallet's net result needs fills, fees and funding together. Our Hyperliquid funding rate history guide covers the funding side.
-- Realized perp PnL and USDC fees by wallet. Add funding separately.
SELECT wallet,
count(*) AS fills,
sum(CAST(closed_pnl AS DOUBLE)) AS realized_pnl,
sum(CASE WHEN fee_token = 'USDC' THEN CAST(fee AS DOUBLE) ELSE 0 END) AS usdc_fees
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE market_type <> 'SPOT'
GROUP BY wallet
ORDER BY realized_pnl DESC
LIMIT 50;A leaderboard built this way is survivorship-free. It includes every wallet that traded in the window, not only the ones that are still active or still show a profit.
Liquidations
Liquidations are not a separate feed on Hyperliquid. They are fills, flagged with is_liquidation, carrying the liquidated user, the mark price at the time and the liquidation method. Because a liquidation is still a two-sided trade, aggregate per tid before summing, so the liquidated notional is counted once whichever side carries the flag:
-- Hourly liquidated notional, counted once per trade.
SELECT date_trunc('hour', block_time) AS hour,
coin,
liquidation_method,
count(*) AS liquidation_trades,
sum(notional) AS liquidated_usd
FROM (
SELECT tid,
any_value(block_time) AS block_time,
any_value(coin) AS coin,
any_value(liquidation_method) AS liquidation_method,
any_value(CAST(notional_usd AS DOUBLE)) AS notional
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE is_liquidation = 1
GROUP BY tid
)
GROUP BY 1, 2, 3
ORDER BY liquidated_usd DESC;Hourly liquidated notional is the core input for studying cascades: how quickly forced selling clusters, which markets it hits, and whether it leads or follows the mark price. Keep liquidations out of anything meant to describe discretionary trading. Forced fills are not decisions, and mixing them in distorts measures of price impact and trader behavior.
TWAP Execution
Hyperliquid's TWAP orders split a parent order into slices executed over time. Each slice is a normal fill with is_twap = 1 and a twap_id linking it to its parent. Grouping by twap_id turns slices back into parent orders, which is what you want when studying how large traders execute:
-- Reassemble TWAP parent orders from their slices.
SELECT twap_id,
any_value(wallet) AS wallet,
any_value(coin) AS coin,
min(block_time) AS first_slice,
max(block_time) AS last_slice,
count(*) AS slices,
sum(CAST(sz AS DOUBLE)) AS total_size,
sum(CAST(notional_usd AS DOUBLE)) / sum(CAST(sz AS DOUBLE)) AS vwap
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE is_twap = 1
GROUP BY twap_id
ORDER BY total_size DESC;Comparing a parent order's VWAP with the price before its first slice gives a direct estimate of execution cost for size. Run it per market to see where large orders are cheap to work and where they move the price.
Builder Codes Are Not HIP-3
Two different things on Hyperliquid are called "builder," and trade analyses regularly confuse them.
Builder codes let a frontend, wallet or bot attach a fee to the orders it routes. A user first approves a maximum fee for that builder through the ApproveBuilderFee action (Hyperliquid docs). Third-party integration guides give the caps as 0.1% on perps and 1% on spot. In the fills, the routing builder's address appears in builder and the fee it earned in builder_fee. This is attribution of order flow: which app the trade came through.
HIP-3 markets are perpetual markets deployed by a builder who has staked HYPE to run their own perp dex on Hyperliquid's order book. This is attribution of the market: whose listing the trade happened on. A trade on a HIP-3 market can carry no builder code, and a builder-code trade can happen on a native market. The two are independent.
-- Order flow and fees by routing builder (builder codes, not HIP-3).
SELECT builder,
count(*) AS fills,
sum(CAST(notional_usd AS DOUBLE)) AS routed_notional_usd,
sum(CAST(builder_fee AS DOUBLE)) AS builder_fees,
sum(CAST(builder_fee AS DOUBLE))
/ sum(CAST(notional_usd AS DOUBLE)) * 1e4 AS fee_bps
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE builder <> ''
GROUP BY builder
ORDER BY builder_fees DESC;Identifying HIP-3 Trades
HIP-3 markets are separated by their perp dex. In Hyperliquid's API, a builder-deployed market is named with its dex as a prefix, dex:COIN, such as xyz:NVDA, and the perpDexs info request lists the deployed dexes (GoldRush reference). Third-party documentation notes the exact string can differ by API surface, so match on the dex rather than parsing coin names.
In the swaps table, the dex column is the field to segment on. Native Hyperliquid markets carry dex = 'hyperliquid', as every row of the free sample does. A weekly split of perpetual volume by dex is the starting point for any HIP-3 study:
-- Weekly perpetual volume by dex, counted once per trade.
SELECT date_trunc('week', block_time) AS week,
dex,
sum(CAST(notional_usd AS DOUBLE)) AS volume_usd,
count(DISTINCT coin) AS markets
FROM read_parquet('hyperliquid/historical/swaps/schema=v1.0/date=*/part-*.parquet')
WHERE is_taker = 1
AND market_type <> 'SPOT'
GROUP BY 1, 2
ORDER BY 1, volume_usd DESC;One limit to state plainly: the published sample contains only native markets, so it cannot show how HIP-3 fills appear in the table. Builder-deployed markets also concentrate heavily, with a single deployer holding over 90% of HIP-3 open interest in mid-2026 reporting (hyperliquidguide). Before buying data for a HIP-3 study, ask us which builder dexes your coverage window includes, and run the query above on the delivered files before drawing conclusions.
Coverage, Windows and What You Get
Know exactly what the data covers before planning a study around it.
- Coverage. The Hyperliquid Historical dataset's listed coverage is July 2025 to July 2026. The
swapstable spans that full window; other tables start later, as the table guide lists. It is historical data, not a live feed. - Windows and prices. The dataset is sold per coverage window, counted back from the end of the listed history. As of November 2026: latest month $200, last 6 months $500, last 12 months $1,000, full history $2,000. Price does not depend on row count.
- One purchase, every table. Each window includes all nine tables (fills, funding, L2 order-book snapshots, ledger updates and the rest) as partitioned Parquet with per-table manifests and checksums. Download links arrive by email.
- Free samples. 100 rows of every table, downloadable individually or as one bundle, to check the schema before buying.
If you also need order book depth beside the fills, note that the snapshot table covers only May to June 2026; our guide to crypto order book data covers what it contains.
Validation Checklist
- Count trades once. Filter
is_taker = 1for volume, or aggregate bytid. - Split spot from perps before comparing with any published volume figure.
- Never sum fees across tokens. Compute fee rates per
fee_token. - Handle protocol addresses such as
0xffff…ffffbefore wallet-level studies. - Separate liquidations from discretionary flow before measuring impact or behavior.
- Add funding from the funding table before calling any PnL "net."
- Do not confuse builder codes with HIP-3.
builderis order flow;dexis the market. - Cast decimals before multiplying or aggregating large ranges.
Frequently Asked Questions
What is Hyperliquid trade data?
Hyperliquid trade data is the record of executed matches on Hyperliquid's on-chain order book. Each trade is reported as two fills, one for the maker and one for the taker, carrying price, size, USD notional, wallet, fees, position effect and flags for TWAP and liquidation fills.
How do I get historical Hyperliquid trades?
The Info API returns fills for one wallet at a time, up to 2,000 per response and only the 10,000 most recent per wallet. Hyperliquid's requester-pays S3 node data holds raw historical fills that must be parsed and validated. The datastore.sh Hyperliquid Historical dataset provides every available spot and perpetual fill as typed Parquet, covering July 2025 to July 2026.
Why is my Hyperliquid volume double the reported figure?
Every Hyperliquid trade appears as two fills, maker and taker, with the same trade ID. Summing notional across all fills counts each trade twice. Keep only taker fills (is_taker = 1) or aggregate by trade ID.
How are liquidations recorded in Hyperliquid trade data?
Liquidations are fills flagged as liquidations, carrying the liquidated user, the mark price and the liquidation method. Aggregate them per trade ID before summing notional so each liquidation is counted once.
What is the difference between builder codes and HIP-3?
Builder codes let an app attach a fee to orders it routes, recorded per fill as the builder and builder fee. HIP-3 lets a builder deploy its own perpetual markets, identified by the market's perp dex. One describes where order flow came from; the other describes whose market the trade was on.
Does the dataset include HIP-3 markets?
HIP-3 went live on October 13, 2025, inside the dataset's coverage window, and trades are segmented by the dex column. The free sample contains only native Hyperliquid markets, so confirm which builder dexes a coverage window includes before purchasing for a HIP-3 study.
Sources
- Hyperliquid docs: Historical data · S3 archive and node data, requester-pays
- Hyperliquid docs: Builder codes · ApproveBuilderFee approval flow
- Hyperliquid docs: HIP-3 builder-deployed perpetuals · deployer model
- GoldRush: userFillsByTime · 2,000 fills per response, 10,000 most recent per wallet
- GoldRush: perpDexs · listing builder-deployed perp dexes
- Nansen: What is HIP-3 · October 13, 2025 mainnet activation, 500,000 HYPE stake
- Crypto Briefing: Hyperliquid equities volume · HIP-3 at 44% of weekly volume, November 2026
- KuCoin: HIP-3 at 51% of platform volume · July 2026 share
- Privy: Hyperliquid builder codes · 0.1% perp and 1% spot fee caps
- hyperliquidguide: State of HIP-3 · market count, open interest concentration
Datasets in this post
Dataset · HyperliquidHyperliquid Historical9 tables · schema v1.0 · from $200Data Platform
datastore.sh engineering
The team that operates capture, decoding, and reconciliation for every dataset in the catalog.