Skip to main content
Hyperliquid’s API only returns about the last 5,000 candles per interval, so a Hummingbot backtest on 1m candles stops at about 3.5 days. Override the Hyperliquid candle feed and it reads your plan’s full history from Ironflow. Tested with Hummingbot 20260922.
ironflow_candles.py
Import it once before anything builds a hyperliquid_perpetual feed. Backtests through BacktestingDataProvider then read history through your key:
backtest.py

How it works

Hummingbot’s feed asks for at most 500 candles per call and pages backward, which fits the Hyperliquid RPC (1,000 per call). Perpetuals only. Only REST candle history changes. Hummingbot’s live candle stream stays on Hyperliquid’s WebSocket, and orders go straight to Hyperliquid, since the RPC has no WebSocket and no order path.

Plan limits

A free key’s 14 days is 20,160 1m candles. Keep to your plan’s rate limit on long pulls. The RPC has no keyless access: get a free key. Candles are built from every fill, so high, low and trade count can differ from Hyperliquid’s own candles in heavy liquidation hours. Next: paper trade on Hyperliquid with the official SDK, $10,000 and live prices.