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
- Freqtrade exchange notes: "The Hyperliquid API does not provide historic data beyond the single call to fetch current data, so downloading data is not possible." (freqtrade.io exchanges)
- Hyperliquid info endpoint: "Only the most recent 5000 candles are available." (Hyperliquid docs). CCXT's
hyperliquid.fetch_ohlcv()calls this endpoint, so paginating withsincecannot go past the window.
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.