Hyperliquid Order Book Dataset

Hyperliquid Historical Order Book Data

Hyperliquid spot and perpetual order book updates packaged for replay, latency analysis, and crypto market microstructure research.

No credit card · The sample is one real hourly Parquet file and needs no API key

Is this the right dataset?

Choose the order book detail your research needs

This landing page is for coverage, schema, sample files, and downloads. Use the SDK docs for method parameters and the reconstruction tutorial for replay logic.

L1 / top of book

Best bid and best ask only. Derive this view after replaying the L2 snapshots and deltas; ticker statistics are not a substitute for quotes.

L2 / price-level depth

This dataset. It records aggregate quantity at each visible price level so you can measure spread, depth, and imbalance.

L3 / individual orders

Not provided. L2 cannot reveal queue position or how many individual orders make up a level unless the venue publishes an order count.

Sample

See the data before you sign up

The first rows of one real hour: BTC on Hyperliquid Futures, 2026-09-02 at 12:00 UTC. One row per bid or ask price level in a snapshot or update.

hyperliquid_futures/2026-09-02/12/BTC_orderbook.parquetDownload full file
received_timeevent_timetransaction_timesymbolevent_typefirst_update_idfinal_update_idprev_final_update_idlast_update_idsidepricequantityorder_count
17883504000000000001788350400000nullBTCsnapshotnull1788350395993null1788350395993bid76812.04.047466
17883504000000000001788350400000nullBTCsnapshotnull1788350395993null1788350395993ask76836.02.829424
17883504000000000001788350400000nullBTCsnapshotnull1788350395993null1788350395993bid76813.03.885925
Showing 3 of 26,120 rows in this hourTimestamps are raw integers; units are in the schema below

Wire format

From exchange message to Parquet row

Every row starts as a message on the exchange's WebSocket or REST API. Point at a line or a column to see where each value comes from and how we convert it. Our test suite replays these messages through the production pipeline, so the rows shown are the rows you download.

Each l2Book message is a full snapshot of the top of the order book, not a delta. Each message becomes one snapshot row for each level.

Exchange sends

WebSocket message · l2Bookreceived 2026-10-05 19:16:37.268427 UTC

{
"channel": "l2Book",
"data": {
"coin": "BTC",
"time": 1791227796735,
"levels": [
[
{
"px": "85628.0",
"sz": "5.71229",
"n": 19
},
{
"px": "85627.0",
"sz": "0.005",
"n": 1
},
{
"px": "85626.0",
"sz": "0.75919",
"n": 1
}
],
[
{
"px": "85629.0",
"sz": "4.37963",
"n": 39
},
{
"px": "85630.0",
"sz": "0.58198",
"n": 23
},
{
"px": "85631.0",
"sz": "3.85701",
"n": 9
}
]
]
}
}

Shortened: Hyperliquid sent 20 bid levels and 20 ask levels. This example shows the best 3 of each.

You download

Parquet row · orderbook · 1 of 6 rows from this message

Point at a line in the message or a column in the row to trace where each value comes from. Click a column to pin it.

Our tests replay this message through the production pipeline

All Hyperliquid Futures mapping rules →

Conventions for every exchange are in the wire formats overview. Column types and units for order book data are in the schema below.

Use cases

What you can build with order book data

Spread, depth, and imbalance
Replay the book to measure bid/ask spread, depth within N basis points, and order book imbalance at any moment in the hour.
Execution and market-making backtests
Simulate fills against the liquidity that was actually resting on the book instead of assuming a mid-price fill.
Cross-venue liquidity research
Compare depth and spread across exchanges with one schema instead of maintaining a parser per venue.

Coverage

Order book coverage

Every venue is stored under its own exchange ID, so spot and derivatives never mix. Bars show each venue's history from its first hourly file to today, or to its last file for a venue that is no longer collected. Symbol counts are live from the symbols API.

Order book coverage by venue, exchange ID, market, history start, and live symbol count
VenueExchange IDMarketHistoryOrder book symbols
Hyperliquid Futureshyperliquid_futuresPerpetuals
2025-09-2914 mo
458
Hyperliquid Spothyperliquid_spotSpot
2025-09-2914 mo
356

Other exchanges

Order Book data on other exchanges

The same schema on every venue, so switching exchange is a one-argument change.

Or compare every venue on the cross-exchange order book overview.

Schema · 13 columns

Normalized L2 order book schema

Every row represents one bid or ask price level inside a snapshot or incremental update. Rows carry exchange timing, sequence fields when available, price, quantity, and event type.

Columns in every order book Parquet file
ColumnTypeDescription
received_timeINT64Unix timestamp (nanoseconds) when our system received the event
event_timeINT64Unix timestamp when the exchange generated the event (the time unit changes with the exchange)
transaction_timeINT64nullableExchange-specific transaction timestamp (if available)
symbolSTRINGTrading pair symbol (for example, "BTCUSDT")
event_typeSTRINGType of order book event ("snapshot" or "update")
first_update_idINT64nullableFirst update ID in the update sequence
final_update_idINT64nullableFinal update ID in the update sequence
prev_final_update_idINT64nullablePrevious final update ID (to find gaps)
last_update_idINT64nullableLast update ID that the exchange processed
sideSTRINGOrder book side ("bid" or "ask")
priceSTRINGPrice level (stored as string for precision)
quantitySTRINGQuantity at the price level (stored as string for precision). The unit is the base asset on most venues. OKX derivatives use contracts, and BitMEX uses raw instrument units (refer to the venue notes)
order_countINT64nullableNumber of orders at this price level (if the exchange gives it)

Quickstart

From pip install to DataFrame in a minute

The example loads BTC from Hyperliquid Futures for 2026-09-02. Change the symbol, exchange, or dates to pull any other slice of the archive.

  1. Install the Python SDK

    pip install cryptohftdata
  2. Create a free API key

    Sign up with email or Google, then generate a key from your dashboard. No credit card.

    Create account
  3. Call get_orderbook()

    Paste the snippet, replace YOUR_API_KEY, and you get a pandas DataFrame with the columns listed above.

hyperliquid_orderbook_data.py
import cryptohftdata as chd

client = chd.CryptoHFTDataClient(api_key="YOUR_API_KEY")

df = client.get_orderbook(
    symbol="BTC",
    exchange=chd.exchanges.HYPERLIQUID_FUTURES,
    start_date="2026-09-02",
    end_date="2026-09-02",
)

print(df.head())
print(f"Order book rows: {len(df):,}")
REST · no API key needed for single files
curl --fail --location \
  "https://api.cryptohftdata.com/download?file=hyperliquid_futures/2026-09-02/12/BTC_orderbook.parquet" \
  -o BTC_orderbook_12.parquet

Caveats

Know this before you backtest

Exchange feeds differ in subtle ways. These are the details that matter for accurate backtests, replay pipelines, and features. Missing hours and pending corrections for every venue are listed on Known Gaps & Corrections.

  1. L2 order book data is aggregated by price level, not individual L3 orders.

  2. Files contain snapshots plus incremental updates. Build state from a complete snapshot, apply later events in stored order, and reset whenever another snapshot appears.

  3. Sequence fields vary by venue. If available continuity IDs show a gap, discard the local book and wait for a newer snapshot rather than replaying a state you cannot verify.

  4. Quantities are in the venue's unit: base asset on most venues, contracts on OKX derivatives (multiply by the instrument's ctVal), and raw per-instrument units on BitMEX.

  5. Hour-start checkpoint snapshots exist for Binance, Aster, OKX, Bybit, Bitget, Lighter, Kraken Futures and Hyperliquid, not for Kraken spot or BitMEX. A checkpoint is written only when the book is proven current, so some hours start without one; continue from the previous hour's book or wait for the next snapshot.

  6. This page starts on 2025-09-29 based on the earliest stored hourly files for its covered exchange IDs and grows as new hourly files are published.

FAQ

Frequently asked questions

Is Hyperliquid order book data free to download?

Yes. A free CryptoHFTData account with no credit card gives API access to Hyperliquid order book data and every other dataset. Individual hourly files can also be downloaded without an API key on the rate-limited free tier.

How far back does Hyperliquid order book data go?

The earliest hourly files start on 2025-09-29, and new files are added every hour. Start dates differ by venue; the coverage table on this page lists each one.

What format are the files in?

Each file holds one symbol for one UTC hour, stored as Zstd-compressed Parquet under {exchange_id}/{YYYY-MM-DD}/{HH}/{SYMBOL}_orderbook.parquet. Parquet reads directly into pandas, Polars, DuckDB, and Arrow.

How do I load Hyperliquid order book data in Python?

Install the SDK with pip install cryptohftdata, create a client with your API key, and call client.get_orderbook() with a symbol, exchange, and date range. It returns a pandas DataFrame.

Is this L2 or L3 order book data?

L2. Each row is the aggregate quantity at one price level, recorded in snapshots and incremental updates. Individual orders (L3) and queue position are not included.

Start using order book data today.

One free API key covers every exchange and every data type. $0.00.