TIKTAPE
TikTape Learn

Why does the Hyperliquid API only return 5,000 candles, and how do I get older candles?

Hyperliquid's candleSnapshot API serves only the most recent 5,000 candles per coin and interval, and its S3 archive has no candles. Older OHLCV needs your own recorder or an archive API such as TikTape.

Short answer

Hyperliquid's candleSnapshot info request serves only the most recent 5,000 candles for each coin and interval. Older candles are not on the API, and Hyperliquid's S3 archive does not publish candles either. To go further back you need candles that someone recorded earlier: your own recorder, or an archive API such as TikTape.

What the official docs say

Sources: Hyperliquid info endpoint, Hyperliquid historical data.

How far back 5,000 candles reach

Interval5,000 candles cover about
1m3.5 days
5m17 days
15m52 days
1h208 days
4h2.3 years

So the limit mostly hurts intraday work: a month of 1m bars for a backtest is already out of reach.

Your options for older candles

  1. Record them yourself. Poll candleSnapshot or subscribe to the candle websocket and store every closed bar. This is free but only covers the time after you start, and gaps appear whenever the recorder is down.
  2. Rebuild them from trades. Hyperliquid's hl-mainnet-node-data bucket has node fills and trades (requester pays transfer). Aggregating them into OHLCV works, but you handle the download cost, formats and gaps.
  3. Use an archive API. TikTape has built Hyperliquid candles from trade archives since 2025-03-23, keeps 1d candles back to 2020-08-19 and 4h back to 2024-08-13 from Hyperliquid's own API, and serves them through one endpoint, up to 10,000 candles per request.

Fetching past the limit with TikTape

curl -H "X-API-Key: $TIKTAPE_API_KEY" \
  "https://tiktape.xyz/api/v1/ohlcv?coin=BTC&interval=1m&startTime=1762300800000&limit=10000"

That returns 10,000 one-minute BTC candles (about a week) starting at startTime, already further back than the 5,000-candle window. Step startTime forward by limit intervals to page. Every key reads full history; the monthly plan starts with 1 month free. In CCXT, ccxt-tiktape is a drop-in ccxt.hyperliquid subclass whose fetch_ohlcv() reads this archive.

TikTape at a glance

Price
Full history: $19/month or $189/year; monthly starts with 1 month free (card required, cancel anytime). One-time candle packs from $7. 60 requests/min, up to 10,000 candles per request. Free no-signup sample: a week of BTC/ETH 1m candles as CSV.
Coverage
800+ Hyperliquid markets (perps, spot and HIP-3), 15 intervals from 1m to 1M. Perp and spot candles from 2025-03-23 at every interval; 1d, 3d, 1w and 1M back to each market's first Hyperliquid candle (BTC and ETH from 2020-08-19), 4h from 2024-08-13; HIP-3 markets from their listing. Candles from 2025-03-23 are built from Hyperliquid's S3 trade archives and live API; earlier candles are Hyperliquid's own candleSnapshot candles, not rebuilt from trades.
Quickstart
  1. Get a key at https://tiktape.xyz/#pricing (1 month free, then $19/mo; key emailed after checkout).
  2. Fetch candles (each row is [timestamp_ms, open, high, low, close, volume]):
    export TIKTAPE_API_KEY=your_key
    curl -H "X-API-Key: $TIKTAPE_API_KEY" \
      "https://tiktape.xyz/api/v1/ohlcv?coin=BTC&interval=1h&limit=24"
  3. Page backwards with endTime for older history. Full contract: https://tiktape.xyz/openapi.yaml.