TIKTAPE
TikTape Learn

Why can't CCXT or Freqtrade download older Hyperliquid candles?

Both read Hyperliquid's candleSnapshot, which serves only the latest 5,000 candles, and Freqtrade says Hyperliquid history downloads are not possible. ccxt-tiktape is a drop-in ccxt.hyperliquid subclass whose fetch_ohlcv() reads TikTape's archive back to 2025-03-23.

Short answer

Both read Hyperliquid's candleSnapshot endpoint, which only serves the most recent 5,000 candles per coin and interval (about 3.5 days of 1m bars). Freqtrade's docs say outright that downloading Hyperliquid history is not possible. To get older candles, read them from an archive: ccxt-tiktape is a drop-in ccxt.hyperliquid subclass whose fetch_ohlcv() reads TikTape's archive, and for Freqtrade you write those candles to its data directory.

What the docs say

CCXT: swap in ccxt-tiktape

pip install ccxt-tiktape
import os
import ccxt_tiktape

exchange = ccxt_tiktape.tiktape({"apiKey": os.environ["TIKTAPE_API_KEY"]})

# 1m candles from 7 days ago: older than the 5000 bars ccxt.hyperliquid can reach.
since = exchange.milliseconds() - 7 * 24 * 60 * 60 * 1000
candles = exchange.fetch_ohlcv(
    "BTC/USDC:USDC", "1m", since=since, limit=10_000, params={"paginate": True}
)
print(len(candles), "candles from", exchange.iso8601(candles[0][0]))

Symbols, timeframes and the [open_time_ms, open, high, low, close, volume] row format match ccxt.hyperliquid; markets, tickers, funding and order books still come from Hyperliquid. Source and runnable examples: github.com/tiktape/ccxt-tiktape.

Freqtrade: backtest from files

Freqtrade cannot load a third-party CCXT class, so skip freqtrade download-data for Hyperliquid. Download the candles once (with ccxt-tiktape or the raw API below), save them in Freqtrade's data format, for example user_data/data/hyperliquid/BTC_USDC_USDC-1m-futures.feather, and run freqtrade backtesting on those files.

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

A TikTape key reads every interval back to 2025-03-23 (4h to 2024-08-13, 1d to 2020-08-19). The monthly plan starts with 1 month free. To try the data first without a key, download the free BTC/ETH 1m sample week.

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.