Skip to main content
Hyperliquid’s API only returns about the last 5,000 candles per interval, so a NautilusTrader backtest on Hyperliquid cannot reach far. Load Ironflow history into a ParquetDataCatalog instead. Tested with NautilusTrader 1.230.

Hourly bars, no key

load_catalog.py
That is 12,432 hourly bars for BTC. Backtest them with catalog.bars([str(bar_type)]) and catalog.instruments(): add both to a BacktestEngine with a Venue("HYPERLIQUID") margin account, and run your strategy. Extend MONTHS as new months are published. Set maker_fee and taker_fee to your own Hyperliquid fee tier.

1m bars, with a key

The dataset is hourly. For intraday bars page /v1/candles with your key, and build bars from the rows:
Run it after the instrument and catalog definitions above, with IRONFLOW_KEY=if_your_key. Needs requests.

Plan limits

A free key’s 14 days is 20,160 1m bars. Hourly it is 336, so use the free dataset for long hourly tests. Get a free key or see all plans. 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.