Hyperliquid S3 data: buckets, cost and download
Hyperliquid publishes its history in two requester-pays S3 buckets: hl-mainnet-node-data in Tokyo with every fill and event a node writes, and hyperliquid-archive with book snapshots and daily asset contexts. You pay AWS for every gigabyte and parse LZ4 files yourself, or read the same data from Ironflow, parsed and indexed, in one call.
- S3
- aws s3 ls s3://hl-mainnet-node-data/ --request-payer requester
- API
- GET https://api.ironflow.sh/v1/trades?market=BTC-PERP&limit=3 no key
Free key14 days of history at 60 requests a minute. Without a key, the API reaches 24 hours back.
By requesting a key you agree to the Terms and API terms; see the Privacy Policy. We may email you when your key keeps hitting its limits; you can opt out at any time.
The short version#
- Fills and events:
s3://hl-mainnet-node-data, ap-northeast-1. One LZ4 file per hour, one JSON line per block. - Book snapshots and asset contexts:
s3://hyperliquid-archive, us-east-1. Updated about once a month, no guarantee. - Cost: Hyperliquid charges nothing; you pay AWS about $0.114 per GB out of Tokyo. A year of fills is about $40 to a server outside AWS.
- Work: AWS billing, LZ4, three fill formats, two rows per trade, names to resolve, no candles, gaps to check, billions of rows to store.
- Skip it: Ironflow has the same history parsed, indexed and live, over 1.5 billion trades since 25 May 2025, over REST, SQL and MCP.
1. What is in the buckets#
Both buckets are described on Hyperliquid's historical data page. The requester pays for the transfer. Regions are what each bucket reports.
s3://hl-mainnet-node-data, ap-northeast-1 (Tokyo)
| Prefix | Holds |
|---|---|
node_fills_by_block | Every fill, one line per block, both sides of each trade. The format a node writes with --write-fills --batch-by-block. |
node_fills | Older fills, in the API's fill format. |
node_trades | Older trades, in a format that differs from the API. |
misc_events_by_block | Non-trade events: transfers, staking and funding. |
explorer_blocks | Explorer blocks. |
replica_cmds | L1 transactions. |
s3://hyperliquid-archive, us-east-1
| Path | Holds |
|---|---|
market_data/[date]/[hour]/l2Book/[coin].lz4 | L2 book snapshots per coin and hour. |
asset_ctxs/[date].csv.lz4 | Asset contexts per day: mark price, funding, open interest. |
The node fills files include spot and HIP-3 fills. Hyperliquid provides no candles and no spot asset data through S3. The field layout of each file is in the L1 data schemas.
2. What a download costs#
The buckets are requester pays: AWS bills your account for the requests and the bytes, and Hyperliquid pays nothing. Data transfer to the internet costs about $0.114 per GB for the first 10 TB a month out of Tokyo and $0.09 out of US East (AWS data transfer prices). Transfer to another AWS service in the same region is not billed (S3 pricing). When we measured on 28 July 2026, one day of node_fills_by_block was 0.93 GiB compressed.
| What | To | About |
|---|---|---|
| A year of node_fills_by_block, about 340 GiB | A server outside AWS | About $40 (Tokyo egress, $0.114 per GB) |
| The same year | An EC2 server in ap-northeast-1 | No transfer charge; you pay for the server and its disk |
| Book snapshots from hyperliquid-archive | A server outside AWS | About $0.09 per GB (US East egress) |
| A year of hourly files, 8,760 GET requests | Anywhere | Under one cent ($0.0037 per 10,000 in Tokyo) |
The fills are one prefix of several. Pull only the prefixes and days you need: aws s3 sync on the whole bucket downloads every block and L1 transaction too.
3. Download with the AWS CLI#
You need an AWS account, credentials the CLI can read, and --request-payer requester on every command. Files are named [prefix]/hourly/[YYYYMMDD]/[hour].lz4.
# list one day of fills
aws s3 ls s3://hl-mainnet-node-data/node_fills_by_block/hourly/20261113/ \
--request-payer requester
# one hour, then unpack it
aws s3 cp s3://hl-mainnet-node-data/node_fills_by_block/hourly/20261113/9.lz4 . \
--request-payer requester
unlz4 --rm 9.lz4
# a whole day
aws s3 sync s3://hl-mainnet-node-data/node_fills_by_block/hourly/20261113/ ./20261113/ \
--request-payer requester# an L2 book snapshot for one coin and hour
aws s3 cp s3://hyperliquid-archive/market_data/20230916/9/l2Book/SOL.lz4 /tmp/SOL.lz4 \
--request-payer requester
unlz4 --rm /tmp/SOL.lz44. File formats#
Each line of a by_block file is one block as JSON: block_number, block_time and events. In node_fills_by_block each event is an [address, fill] pair, and the fill has the coin, price, size, side, direction, fee, closed PnL and tid. This reads one unpacked hour, keeps one row per trade and counts liquidations once:
import json
from collections import Counter
trades = {} # one row per trade: both sides share a tid
liquidations = 0
with open("9") as f: # one unpacked hourly file from node_fills_by_block
for line in f:
block = json.loads(line)
for address, fill in block["events"]:
if fill.get("liquidation") and fill["liquidation"]["liquidatedUser"] == address:
liquidations += 1
trades.setdefault(fill["tid"], (block["block_time"], fill["coin"], fill["px"], fill["sz"]))
print(len(trades), "trades,", liquidations, "liquidated fills")
print(Counter(coin for _, coin, _, _ in trades.values()).most_common(3))Asset contexts in hyperliquid-archive are one CSV per day, and book snapshots one file per coin and hour. The order book guide covers the snapshots.
5. Parsing and gaps#
What stands between the bucket and an answer:
- Requester pays on every call. Every request needs
--request-payer requesterand credentials from an AWS account that can be billed. Without them S3 answers 403 Access Denied. - LZ4, one file per hour. Unpack with
unlz4or thelz4library first. Hour names run 0 to 23 without zero padding, so sort them as numbers: as strings, 10 comes before 2. - Two rows per trade. Each trade appears once per side, with the same
tid. Keep one row pertidfor trades and both rows for per-wallet fills. - Three fill formats. Older periods sit in
node_fills(API format) andnode_trades(a different format), newer ones innode_fills_by_block. One series over the whole history needs a reader for each. - Names to resolve. HIP-3 coins carry the dex prefix, as in
xyz:NVDA, and adeployerFee. Spot fills name the pair by index, as in@107, which you map through spot metadata. - Liquidations are a field. A liquidation fill carries
liquidationwith the liquidated user on both parties' rows. Count an event once by keeping the row whose address is the liquidated user. - No candles. The buckets hold no candles and no spot asset contexts. Candles are built from fills.
- Gaps and lag. Hyperliquid says
hyperliquid-archiveupdates about once a month, with no guarantee, and data may be missing. Hourly node files usually land about an hour after the hour closes. Check block numbers for holes before you trust a total. - Storage. Fills alone run to billions of rows since May 2025. They need a columnar store, partitioning and an index before a query over a month answers in seconds.
6. The same data, ready to query#
Ironflow runs its own Hyperliquid nodes and backfilled from these buckets: over 1.5 billion trades since 25 May 2025, parsed and indexed, plus every liquidation, funding rate, transfer and candle. You ask a question instead of downloading a year.
| S3 yourself | Ironflow | |
|---|---|---|
| Account | AWS account and billing, requester pays | None for 24 hours; a free key by email for 14 days |
| Format | LZ4 JSON lines, three fill formats | JSON over REST, SQL, MCP, Parquet files |
| Trades and fills | One row per side, deduplicate yourself | Trades and per-wallet fills as separate endpoints |
| Candles | None; build from fills | 1m to 1w from every stored fill |
| Liquidations | A field on two rows | Own endpoint, table and live stream |
| Freshness | Hourly files, about an hour behind | Live from our own node |
| Gaps | Yours to find and fill | Block continuity checked every hour, holes filled from the archive |
# newest BTC trades, no key
curl "https://api.ironflow.sh/v1/trades?market=BTC-PERP&limit=3"
# the five markets with the most traded USD in the last hour, in SQL, no key
curl -G "https://api.ironflow.sh/v1/query" --data-urlencode \
"sql=SELECT market, count() AS fills, round(sum(notional)) AS usd FROM hl.fills WHERE ts > now() - INTERVAL 1 HOUR GROUP BY market ORDER BY usd DESC LIMIT 5"
# 14 days of hourly BTC candles with a free key
curl -G https://api.ironflow.sh/v1/candles -H "Authorization: Bearer $IRONFLOW_API_KEY" \
-d market=BTC-PERP -d interval=1h -d from=-14dFree keyWithout a key the API reaches 24 hours back. A free key reaches 14 days at 60 requests a minute. Get one by email.
- No key: 24 hours of history at 30 requests a minute, over REST, SQL and the MCP server.
- Free key: 14 days at 60 requests a minute, 30 days in SQL. Get one by email.
- Free files: hourly candles and liquidations since 25 May 2025, funding and open interest since May 2023, as Parquet on ironflow.sh/datasets. Files from 10 November 2026 appear 90 days after the data date, without wallet addresses, for non-commercial use.
- Builder: $149 for 30 days. 1 year of every table, SQL export to Parquet or CSV, commercial use, and the hourly market panel (OI, mark, oracle, funding and volume per market). Get Builder.
- Enterprise: everything we store, from 25 May 2025, or your own node with this data on the same server. Talk to sales.
Questions#
Where is Hyperliquid's S3 data?#
In two requester-pays buckets. s3://hl-mainnet-node-data, in Tokyo (ap-northeast-1), holds every fill, non-trade event, explorer block and L1 transaction a node writes. s3://hyperliquid-archive, in us-east-1, holds L2 book snapshots and daily asset contexts.
How much does it cost to download Hyperliquid's S3 data?#
Hyperliquid charges nothing; the requester pays AWS for the transfer. AWS lists about $0.114 per GB out of Tokyo to the internet and $0.09 out of us-east-1, and a server in the same region pays no transfer. One day of node_fills_by_block was 0.93 GiB when we measured it on 28 July 2026, so a year of fills is about 340 GiB, about $40 to a server outside AWS.
Why do I get Access Denied on hl-mainnet-node-data?#
The buckets are requester pays. Every AWS CLI call needs --request-payer requester and credentials from an AWS account that can be billed; without them S3 answers 403 Access Denied.
What format are Hyperliquid's S3 files in?#
LZ4-compressed files, one per hour, named by date and hour without zero padding. Each line is one block as JSON with its number, time and events; in node_fills_by_block an event is an [address, fill] pair. Asset contexts are one CSV per day.
Does Hyperliquid's S3 archive have candles?#
No. Hyperliquid provides no candles or spot asset data through S3. Build candles from the fills, or read them from https://api.ironflow.sh/v1/candles, which serves 1m to 1w from every stored fill.
Can I get Hyperliquid's S3 data without AWS?#
Yes. Ironflow serves the same history parsed and indexed: every fill since 25 May 2025 over REST, SQL and MCP, 24 hours with no key and 14 days with a free key, and free Parquet files for hourly candles, liquidations and funding.
Related guides#
- Hyperliquid historical data: free download, S3 and API
- Hyperliquid data sources compared
- Hyperliquid trades and fills data
- Hyperliquid historical liquidations API
- Hyperliquid SQL: query every fill, liquidation and transfer
- Hyperliquid non-validator node requirements
References#
- Hyperliquid docs: Historical data. The buckets, prefixes, formats and the requester-pays rule.
- Hyperliquid docs: L1 data schemas. The field layout of the node files.
- AWS docs: Requester Pays buckets. Who pays for requests and transfer, and the request header.
- AWS: Amazon S3 pricing. Requests, and transfer within a region.
- AWS: EC2 on-demand pricing, data transfer. Internet egress per GB by region and monthly volume.
Every fill, liquidation and candle in these buckets, and the hours since, is one call away on the Ironflow API. A free key gives 14 days of history. For the raw node files on your own server, we run dedicated nodes.
Free key14 days of history at 60 requests a minute. Without a key, the API reaches 24 hours back.
By requesting a key you agree to the Terms and API terms; see the Privacy Policy. We may email you when your key keeps hitting its limits; you can opt out at any time.