Hyperliquid OHLCV API: Candle Intervals, History and CSV Export
Get Hyperliquid OHLCV candles by API with Hyperdash: 17 intervals from 1 second to 1 month, history from March 30, 2023, perp, spot, Hyperliquid HIP-3 and HIP-4 markets, and CSV export.
, 9 min read

Our pick: the Hyperdash Data API. The Hyperdash Data API serves Hyperliquid OHLCV candles from one endpoint, GET /v1/markets/{coin}/candles, at 17 intervals from 1 second to 1 month. Candles of 1 minute and longer go back to March 30, 2023, or to a market's listing if later. 1-second, 15-second and 30-second candles cover about the last 23 hours. The same call works for perps, spot pairs, Hyperliquid HIP-3 markets and Hyperliquid HIP-4 outcome markets, and returns JSON, CSV or NDJSON. It suits backtests, charts and models that need more than the most recent 5,000 bars. Plans start at $20 a month.
Get started in about 2 minutes: create your Hyperdash account and pick a plan from $20 a month, then connect the Hyperdash MCP server to Claude or ChatGPT. You sign in with your Hyperdash account, so no API key is needed.
Hyperliquid's own public API also serves candles, through the candleSnapshot info request. It is free, and it returns only the most recent 5,000 candles per market and interval (info endpoint).
Hyperliquid OHLCV data at a glance
| Hyperdash Data API | Hyperliquid public API | |
|---|---|---|
| Request | `GET /v1/markets/{coin}/candles` | `candleSnapshot` on `POST /info` |
| Intervals | 1s, 15s, 30s, then 1m to 1M | 1m to 1M |
| How far back | From March 30, 2023 for 1m and longer, within your plan's history depth | The most recent 5,000 candles per interval |
| Fields per bar | Open, high, low, close, base volume, USD quote volume, trade count, liquidation-only flag | Open, high, low, close, base volume, trade count |
| Markets | Perps, spot, Hyperliquid HIP-3 and HIP-4 | Perps, spot, Hyperliquid HIP-3 and HIP-4 |
| Formats | JSON, CSV, NDJSON | JSON |
| Cost | Credits, on plans from $20 a month | Free, within an IP rate limit |
The Hyperdash candles reference lists every parameter. Each Hyperdash request reads Hyperdash's own nodes and stored history, so it never counts against Hyperliquid's rate limits.
Which candle intervals does each source offer?
Hyperliquid's candleSnapshot supports 14 intervals: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w and 1M. Hyperdash serves the same 14, plus 1s, 15s and 30s bars for about the last 23 hours.
The 5,000-candle cap on the public API reaches back a different distance at each interval.
| Interval | Hyperdash: range per request | Hyperdash: history | Public API: 5,000 most recent bars |
|---|---|---|---|
| 1s, 15s, 30s | 1 day | About the last 23 hours | Not offered |
| 1m | 7 days | From March 30, 2023 | About 3.5 days |
| 3m to 30m | 7 days | From March 30, 2023 | About 10 days (3m) to 104 days (30m) |
| 1h to 12h | 30 days | From March 30, 2023 | About 208 days (1h) to 4.6 years (8h); 12h covers a market's whole history |
| 1d, 3d, 1w, 1M | 365 days | From March 30, 2023 | A market's whole history |
From 8-hour bars up, 5,000 bars reach back past March 30, 2023, so the public API's cap stops mattering. Below that it binds hard. A year of 1-minute, 5-minute or 15-minute bars needs a source that stores candles by time range.
How far back does Hyperliquid candle data go on Hyperdash?
Hyperdash's 1-minute and longer candles start on March 30, 2023. A market listed later starts at its listing, and a Hyperliquid HIP-3 market starts when its dex launched (coverage).
How much of that you can read depends on the plan: the last 90 days on Hobby and Starter, 180 on Growth, 365 on Scale and full history on Enterprise (plans). A request older than your plan's depth returns 403 history_limit and costs nothing. Hyperdash's integration team can add longer history to any plan.
Hyperliquid's S3 archive does not help here: Hyperliquid says no candles are published there (historical data). Hyperliquid Historical Data compares the sources dataset by dataset.
How do you get Hyperliquid candles with curl?
Send the market, the interval and, for older data, a time range in Unix milliseconds. With no start_time, 1-minute candles default to the 24 hours before now, so this returns the last day of BTC in one page:
curl "https://data.hyperdash.com/v1/markets/BTC/candles?interval=1m&limit=1440" -H "Authorization: Bearer $HYPERDASH_API_KEY"Each row has t (bar start), o, h, l, c, v (base volume), q (quote volume in USD), n (number of trades) and liq_only, which is true when a bar's prices come only from liquidation fills. Prices and volumes are decimal strings. The response also carries has_more and next_cursor. On intervals other than 1m, meta.forming is true when the last bar is still open; 1m returns closed minutes only.
On perps, spot and Hyperliquid HIP-3 markets, a bar with no trades is left out rather than filled with zeros, so carry the last close forward if your code needs a continuous series. Hyperliquid HIP-4 outcome markets can return bars with zero trades. The end_time bound is excluded, so back-to-back ranges never return the same bar twice.
What it costs: a candle request costs 10 credits, plus 1 per bar and 2 per node read. Both the request and bar charges double when one request spans more than 1,440 bars (credit costs). One day of 1-minute bars in one request costs about 1,450 credits; two days in one request cost 5,780. Pull 1-minute history one day at a time and 90 days of one market costs about 130,500 credits, within the 500,000 a month on Hobby. A year of daily bars is one request of about 375 credits.
How do you pull Hyperliquid OHLCV data in Python?
This version uses requests and pandas, follows the cursor to the last page and loads the last 24 hours of 1-minute ETH candles into a DataFrame:
import os, requests, pandas as pdurl = "https://data.hyperdash.com/v1/markets/ETH/candles"headers = {"Authorization": "Bearer " + os.environ["HYPERDASH_API_KEY"]}page = requests.get(url, headers=headers, params={"interval": "1m", "limit": 1000}).json(); rows = page["data"]while page["next_cursor"]: page = requests.get(url, headers=headers, params={"cursor": page["next_cursor"]}).json(); rows += page["data"]df = pd.DataFrame(rows).astype({"o": float, "h": float, "l": float, "c": float, "v": float})A cursor stays valid for 24 hours and replaces the range on the next call (conventions). A limit of 1,000 keeps each request to one concurrency slot; larger pages use one slot per 1,000 rows, and Hobby has 2 slots (plans).
How do you export Hyperliquid candles to CSV?
Add the header Accept: text/csv. The rows and the credit cost are the same as JSON:
curl "https://data.hyperdash.com/v1/markets/ETH/candles?interval=1h&start_time=$(( ($(date +%s) - 29*86400) * 1000 ))&limit=1000" -H "Authorization: Bearer $HYPERDASH_API_KEY" -H "Accept: text/csv" -o eth-1h.csvThe file starts with a header row of "t","o","h","l","c","v","q","n","liq_only". In CSV, paging moves to the X-Has-More and X-Next-Cursor response headers, so read those to fetch the next page. Accept: application/x-ndjson returns one JSON object per line instead, for appending to files and log tools.
Candles for spot, Hyperliquid HIP-3 and HIP-4 markets
One endpoint covers every market type, using Hyperliquid's own names:
- Perps: the coin name, such as
BTCorETH. - Spot: the pair id, such as
@107(URL-encode@as%40if your client does not). - Hyperliquid HIP-3: the dex prefix and ticker, such as
xyz:TSLA, with the colon encoded as%3A. - Hyperliquid HIP-4: an outcome side, written
#<outcome id><side>, such as#232960, with#encoded as%23.
Hyperliquid HIP-3 equity markets also have oracle bars at GET /v1/markets/{coin}/oracle, built from the node's oracle updates. Hyperliquid HIP-3 stock perps data covers those markets in depth.
Related bar data: trade bars, window prices and the candle stream
- Trade bars:
GET /v1/markets/{coin}/trade-barsadds taker buy and sell size, notional, trade counts and liquidation volume by side to each bar, from March 22, 2025. Summing buy size minus sell size bar by bar gives cumulative volume delta. - One bar for many markets:
GET /v1/markets/window-pricesreturns the open, high, low and close of up to 100 markets over one window, for 80 credits. - Live candles: the
candleschannel on the WebSocket stream sends 5-minute candle updates as trades land, at 1 credit per event. The1m,15m,1h,4hand1dintervals on the stream are not live yet, so poll the REST endpoint for those.
Bulk candle history and Parquet for backtests
Candles have no row budget. The bulk extraction cap applies to the trade tape, so a long candle pull is limited only by your plan's credits, request rate and history depth. Keep 2 to 3 pages in flight at most, wait for Retry-After on any 429, and price a large job first with GET /v1/quote.
Hyperdash's integration team can add scheduled Parquet drops of whole candle histories to any plan, delivered to a warehouse, S3 or a message bus, along with historical backfills. Enterprise plans read every dataset from its start date and put 99.99% uptime in the contract (Enterprise Solutions). For pairing candles with trades, funding, open interest and order book history in a backtest, see Hyperliquid Backtesting Data.
Ask your AI agent for Hyperliquid candles
Connect an AI agent and ask in plain language: "Pull 4-hour ETH candles for the last 30 days and list the five bars with the widest high-to-low range."
- Connect the MCP server: the Hyperdash MCP server works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about 2 minutes and you sign in with your Hyperdash account. Its
get_candlestool takes the same intervals and markets as the REST endpoint. - Install the skills: Hyperdash skills give Claude Code, Codex or Cursor working knowledge of the API with one command; in Claude or ChatGPT, paste the skill link. The Build skill writes candle loaders and paging code, and the Research skill studies what a market did after an event.
- Ask your agent: The Data API guides answer questions like this with one prompt, including Position changes and Liquidations feed.
- Read the docs: the Data API docs, the candles reference, and the endpoint index for agents.
Further reading: Hyperliquid Historical Data and Hyperliquid Backtesting Data.
For a step-by-step example, see the price history guide in the Hyperdash docs.
FAQ
What candle intervals does the Hyperliquid API support?
The Hyperdash Data API serves 17: 1s, 15s and 30s bars for about the last 23 hours, plus 14 intervals from 1m to 1M. Hyperliquid's candleSnapshot supports the same 14.
How far back do Hyperliquid candles go?
On Hyperdash, candles of 1 minute and longer start on March 30, 2023, or at a market's listing, and your plan sets how much of that you can read. Hyperliquid's public API returns the most recent 5,000 candles per interval, which is about 3.5 days of 1-minute bars.
Can I get 1-second Hyperliquid candles?
Yes, from Hyperdash: 1s, 15s and 30s candles cover about the last 23 hours, up to 1 day per request, and only seconds that had trades are returned. Hyperliquid's public API has no sub-minute intervals.
How do I download Hyperliquid OHLCV data as a CSV file?
Call GET /v1/markets/{coin}/candles on the Hyperdash Data API with the header Accept: text/csv, and follow the X-Next-Cursor header for more pages.
Are Hyperliquid HIP-3 and HIP-4 candles available by API?
Yes. Hyperdash serves candles for Hyperliquid HIP-3 markets such as xyz:TSLA and for Hyperliquid HIP-4 outcome sides such as #232960, from the same endpoint as perps and spot.
How many credits does a Hyperliquid candle request cost?
On Hyperdash, 10 credits per request plus 1 per bar and 2 per node read, doubled when one request spans more than 1,440 bars. One day of 1-minute candles costs about 1,450 credits.
Get started with Hyperdash
- Create your Hyperdash account and get your first API key. Plans start at $20 a month.
- Connect the Hyperdash MCP server to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.
- Make your first request with the Quickstart.
Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? Talk to the Hyperdash team.
Start trading
Trade 600+ markets 24/7 with live position, order flow and liquidation data.