Skip to main content
Hyperliquid’s API only returns about the last 5,000 candles per interval, so CCXT’s fetch_ohlcv stops at about 3.5 days of 1m. Point CCXT at your Ironflow key and it reaches your plan’s full history. Tested with CCXT 4.5.92.
ironflow_ccxt.py
Seven days of 1m is 10,080 candles, past Hyperliquid’s limit.

How it works

The Hyperliquid RPC answers candleSnapshot, CCXT’s candle call, in Hyperliquid’s own shape. It returns at most the latest 1,000 candles per call, so history walks back with until. Set the URL after load_markets(): loading markets uses metaAndAssetCtxs and spotMetaAndAssetCtxs, which the RPC does not serve. Use this client for candles only. Tickers and funding use types the RPC refuses, and it never serves orders. Keep a second, plain ccxt.hyperliquid() for those. Timeframes from 1m to 3d. Always pass since (a missing one answers 400).

Plan limits

A free key’s 14 days is 20,160 1m candles. Hourly it is 336, less than Hyperliquid’s own 5,000; for long hourly history use Builder or the free datasets. 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.