Learn/Data API

Hyperliquid Backtesting Data, From Candles to Every Trade

The Hyperdash Data API serves Hyperliquid backtesting data: candles, tick-level trades, funding, open interest, liquidations and order book history, with start dates, page sizes and bulk limits.

By Hyperdash

, 10 min read

Hyperliquid data for backtesting

The Hyperdash Data API serves the history a Hyperliquid backtest needs from one REST API: candles from 1 minute to 1 month since March 30, 2023, every trade with its taker and maker wallets since July 28, 2025, settled hourly funding since September 27, 2025, open interest bars since March 22, 2025, every liquidation since July 28, 2025, and the 20-level order book once a minute since November 11, 2026 (kept 30 days). Every dataset is queried by time range and paged with cursors, in JSON, CSV or NDJSON. Plans start at $20 a month and read 90 to 365 days back; Enterprise reads every dataset from its start date.

Hyperliquid backtesting data at a glance

Hyperliquid history in the Hyperdash Data API
DatasetEndpointAvailable fromGranularityRange per request
Candles (OHLCV)`GET /v1/markets/{coin}/candles`March 30, 20231 minute to 1 month; 1, 15 and 30 seconds for the last 23 hours7 days of 1-minute bars; up to 365 days of daily bars
Trade tape (tick data)`GET /v1/markets/{coin}/trades`July 28, 2025Every trade1 day
Taker buy and sell volume and liquidation bars`GET /v1/markets/{coin}/trade-bars`March 22, 20251 minute to 1 dayAny range, paged
Settled funding rates`GET /v1/markets/{coin}/funding-rates`September 27, 2025Hourly or dailyAny range, paged
Mark, oracle, premium and predicted funding`GET /v1/markets/{coin}/context-history`May 20, 2023 (HIP-3 from October 18, 2026)1 minute to 1 dayAny range, paged
Open interest bars`GET /v1/markets/{coin}/open-interest`March 22, 20251 minute to 1 dayAny range, paged
Daily open interest in USD`GET /v1/markets/{coin}/open-interest/daily`August 26, 2025Daily365 days
Liquidation events with the wallet`GET /v1/liquidations`July 28, 2025Every event7 days
Order book, 20 levels per side`GET /v1/markets/{coin}/book/history`November 11, 2026, kept 30 daysOnce a minuteOne minute
Start dates from the Hyperdash coverage page, docs.hyperdash.com/data-api/coverage. A market listed later starts at its listing.

What data does a Hyperliquid backtest need?

It depends on what the strategy reacts to and how it pays to hold a position.

  • Price: candles at the strategy's bar size, or the trade tape when fills inside a bar matter.
  • Execution cost: the order book around the mid for slippage, and the trade tape for which side was the aggressor.
  • Carry: hourly funding, because every perpetual position on Hyperliquid pays or receives it each hour.
  • Positioning: open interest, to see whether moves came with new positions or with closing ones.
  • Forced flow: liquidations by side and size.
  • Reference prices: mark and oracle prices, which drive funding and liquidations rather than the last trade.

The Hyperdash Data API has each of these as its own endpoint, so a backtest loader is one client with one key.

Where can I get Hyperliquid data for backtesting?

From the Hyperdash Data API, which keeps Hyperliquid history in its own store and serves it by time range. Hyperliquid's public API is built for live trading: it returns the 5,000 most recent candles per interval, has no request for a market's trades by time range and serves only the current open interest. Hyperliquid Historical Data compares every source dataset by dataset. The rest of this guide covers how to pull each one from Hyperdash for a backtest.

How do I get Hyperliquid candle (OHLCV) data through an API?

Call GET /v1/markets/{coin}/candles with an interval and a time range (reference). Intervals are 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w and 1M, from March 30, 2023 or the market's listing. 1s, 15s and 30s bars cover about the last 23 hours.

Each row has t (bar start), o, h, l, c, v (base volume), q (quote volume in USD), n (trades) and liq_only, which flags a bar whose prices come only from liquidation fills. A page holds up to 5,000 bars. One request spans at most 7 days for bars shorter than 1 hour, 30 days for bars from 1 hour to 12 hours, and 365 days for daily and coarser bars; follow next_cursor for the rest of a range.

The last 29 days of hourly BTC candles:

curl "https://data.hyperdash.com/v1/markets/BTC/candles?interval=1h&start_time=$(( ($(date +%s) - 29*86400) * 1000 ))&limit=1000" -H "Authorization: Bearer $HYPERDASH_API_KEY"

The same endpoint covers spot pairs such as @107, HIP-3 markets such as xyz:TSLA and HIP-4 outcome sides. For taker buy and sell size, notional and liquidation volume per bar, use GET /v1/markets/{coin}/trade-bars (from March 22, 2025). Cumulative volume delta is the running sum of its buy size minus sell size.

Where can I get Hyperliquid tick data?

The tick-level dataset is the trade tape at GET /v1/markets/{coin}/trades: every trade in a market since July 28, 2025, in time order (reference). Each row has:

  • the time in milliseconds and the trade id
  • the aggressor side (B for buy, A for sell)
  • price and size
  • the transaction hash
  • the taker wallet and the maker wallet
  • the builder code and builder fee on each side, when there is one

One request covers up to 1 day and returns up to 1,000 rows per page, so a longer history is paged one day at a time:

curl "https://data.hyperdash.com/v1/markets/ETH/trades?start_time=$(( ($(date +%s) - 3600) * 1000 ))&limit=1000" -H "Authorization: Bearer $HYPERDASH_API_KEY"

That returns the last hour of ETH trades; follow next_cursor until has_more is false. For live ticks after the backtest window, the trades WebSocket channel streams the same rows with both wallets (streams).

For one wallet's trade history rather than a market's, use its fills by time range from March 22, 2025, or its completed round-trip trades with realized PnL from February 26, 2023. Those are covered in How to Get Hyperliquid Wallet PnL and Trade History.

How do I get Hyperliquid funding rate history?

GET /v1/markets/{coin}/funding-rates returns settled funding from September 27, 2025, per hour or summed per UTC day (reference). Each row has the bucket start, the rate and the number of funding hours in it. A page reads up to 30 days of hourly buckets or 365 days of daily ones, and the cursor continues across any range.

curl "https://data.hyperdash.com/v1/markets/BTC/funding-rates?interval=1h&start_time=$(( ($(date +%s) - 30*86400) * 1000 ))&limit=1000" -H "Authorization: Bearer $HYPERDASH_API_KEY"

For earlier periods, GET /v1/markets/{coin}/context-history has minute samples of mark and oracle OHLC, premium, predicted funding and impact prices for core perps from May 20, 2023. Hyperliquid Funding Rates explains how the hourly rate is calculated.

How do I get Hyperliquid open interest history?

GET /v1/markets/{coin}/open-interest returns open interest as OHLC bars in base units, from March 22, 2025, at intervals from 1 minute to 1 day (reference). Each bar also reports how many minutes had a sample and a quality rank for its source.

curl "https://data.hyperdash.com/v1/markets/SOL/open-interest?interval=1h&start_time=$(( ($(date +%s) - 30*86400) * 1000 ))&limit=1000" -H "Authorization: Bearer $HYPERDASH_API_KEY"

Open interest lands one closed UTC hour at a time, 1 to 10 minutes after the hour. The hour in progress is not served, so the newest bar is up to about 70 minutes old. For open interest in USD, GET /v1/markets/{coin}/open-interest/daily gives one row per UTC day with the mark, from August 26, 2025.

Order book and liquidation history

Order books. GET /v1/markets/{coin}/book/history returns the top 20 levels per side at any minute since November 11, 2026, kept for 30 days, with the resting notional within 10, 25, 50, 100 and 200 basis points of the mid in meta. That is enough to estimate the cost of filling a given size at each minute of a recent window. Hyperliquid Order Book Data covers the live L2 and L4 books as well.

Liquidations. GET /v1/liquidations returns every liquidation since July 28, 2025 with the liquidated wallet, up to 7 days per request and 2,000 rows per page. GET /v1/liquidations/series gives liquidated notional per hour or day and side from March 22, 2025. The liquidation data guide goes through each liquidation endpoint.

Data details that affect a backtest

  • Times are Unix milliseconds in UTC. start_time is always included; series endpoints exclude end_time (conventions).
  • Prices and sizes are decimal strings. Parse them as decimals; the same value can arrive with extra trailing zeros.
  • Empty bars are absent. A candle with no trades is not returned as zeros, so carry the last close forward yourself if your engine needs a continuous series.
  • Unfinished bars are flagged. Candles mark a forming last bar in meta.forming, and trade bars carry final: false until a bar is complete and certified.
  • Freshness is stated. Where an endpoint reports it, meta.complete_to marks the end of verified history; anything later comes from the live feed.
  • Bar order inside a millisecond. Older candles come from a 1-minute store that orders trades within one millisecond by taker order and sweep position. That matches execution order on all but about 0.05% of bar edges.

How do you pull Hyperliquid history in bulk?

Page by time range and follow next_cursor. Cursors are bound to your workspace and query and stay valid for 24 hours. Send Accept: text/csv or Accept: application/x-ndjson to load pages straight into a dataframe or a file.

The limits that matter for a large pull:

Bulk pull limits by Hyperdash plan
HobbyStarterGrowthScaleEnterprise
Monthly price$20$99$499$1,999Custom
History you can readLast 90 daysLast 90 daysLast 180 daysLast 365 daysFull history
Credits per month500,0004,000,00030,000,000150,000,000Committed
Requests per second1025100200From 200
Concurrent request slots241632From 32
Trade tape rows per 30 days5 million30 million100 million300 millionFrom 300 million
From docs.hyperdash.com/data-api/plans.
  • Concurrency counts by size. A request uses one slot per 1,000 rows its limit allows, so a 5,000-row page takes 5 slots. On Hobby and Starter, pull one 5,000-row page at a time; on larger plans keep 2 to 3 pages in flight (plans).
  • Rate-limited requests are free. A 429 rate_limited costs nothing; wait for Retry-After and stagger retries.
  • History depth is enforced. A request older than your plan's depth returns 403 history_limit and costs nothing.
  • Price before you pull. GET /v1/quote returns the maximum credit cost of any request for free, and X-Max-Credits caps what a single request may spend (credits).
  • Candle pricing. Candles cost 10 credits per request plus 1 per bar (and 2 per node read), and the request and bar charges double when a request spans more than 1,440 bars. Pulling 1-minute bars one day at a time keeps each request at the lower price.
  • Trade tape budget. Reads of the trade tape count against the rows per 30 days above. Going over returns 429 extraction_limit with the time the request fits again. Other datasets have no row budget.

Bulk delivery: Parquet drops and S3

Each plan caps bulk reads over REST. Teams that need full history in bulk, history longer than their plan's depth, or a custom schema can have it added to their plan by Hyperdash's integration team: historical backfills and Parquet drops on a schedule into a warehouse, S3 or a message bus. Enterprise plans read every dataset from its start date over the API, with a contractual 99.99% uptime SLA and 24/7 engineering support (Enterprise Solutions).

Backfills start at each dataset's start date in the table above. There is no Hyperdash order book history before November 11, 2026, for example.

Ask your AI agent about Hyperliquid history

Connect an AI agent and ask in plain language: "Pull hourly BTC funding and open interest for the last 30 days and show the hours where open interest fell more than 2%."

Further reading: Hyperliquid Historical Data and the guide to Hyperliquid data for AI trading agents.

FAQ

Where can I get Hyperliquid data for backtesting?

The Hyperdash Data API serves candles from March 30, 2023, every trade with both wallets from July 28, 2025, settled funding from September 27, 2025, open interest from March 22, 2025, liquidations from July 28, 2025 and minute order book snapshots since November 11, 2026 (kept 30 days), all by time range over REST.

Where can I get Hyperliquid tick data?

From the Hyperdash trade tape, GET /v1/markets/{coin}/trades: every trade since July 28, 2025 with time, trade id, aggressor side, price, size, transaction hash and the taker and maker wallets.

How do I get Hyperliquid open interest history?

Call GET /v1/markets/{coin}/open-interest for OHLC bars from 1 minute to 1 day since March 22, 2025, or GET /v1/markets/{coin}/open-interest/daily for open interest in USD per day since August 26, 2025. Hyperliquid's public API only returns the current value.

How do I get Hyperliquid candle (OHLCV) data through an API?

Call GET /v1/markets/{coin}/candles with an interval from 1m to 1M and a time range. Hyperdash has candles from March 30, 2023, up to 5,000 bars per page. Hyperliquid's public API returns only the 5,000 most recent candles.

How do I get historical trade data for Hyperliquid?

Page through GET /v1/markets/{coin}/trades one day at a time for a market's trades, or use a wallet's fills and completed trades for one trader. The trade tape starts on July 28, 2025.

How far back can I backtest on Hyperliquid with Hyperdash?

It depends on the dataset and your plan. Hobby and Starter read the last 90 days, Growth 180, Scale 365, and Enterprise every dataset from its start date. Longer history can be added to any plan on request.

Can I get Hyperliquid history as Parquet files?

Yes, as a custom build. Hyperdash's integration team adds scheduled Parquet drops into a warehouse, S3 or a message bus to any plan.

Get started

Get a Hyperdash Data API key, call GET /v1/quote to price your first pull, then page candles, funding and open interest for one market over your plan's window. The coverage page lists every dataset's start date, and the Quickstart covers keys and the first request.

Trade Smarter