How to run Freqtrade on Hyperliquid
Updated Nov 17, 2026 · 5 min read
Freqtrade 2026.10 supports Hyperliquid spot and futures. Set walletAddress to your main address and privateKey to an API wallet key, start in dry_run, and save backtest candles yourself.
How do you run Freqtrade on Hyperliquid? Install Freqtrade (2026.10 needs Python 3.12 or newer), set "name": "hyperliquid" and "trading_mode": "futures" in config.json, and start with dry_run: true. For live trading, walletAddress is your main account address and privateKey is an API wallet’s key. The catch is data: freqtrade download-data refuses Hyperliquid, so you save backtest candles yourself. Everything below ran on Nov 17, 2026 with Freqtrade 2026.10 and ccxt 4.5.93.
Key takeaways
- Hyperliquid is officially supported: spot, and futures in isolated or cross margin.
- Stop-loss on exchange works on futures as a stop-limit order, not on spot.
- HIP-3 markets such as xyz stocks need the dex listed in
hip3_dexes. download-datastops with “Historic data not available for Hyperliquid”.
What Freqtrade supports on Hyperliquid
Freqtrade is a GPL-3.0 Python trading framework that reaches exchanges through CCXT. Its README lists Hyperliquid under both spot and futures, and our run logged “Exchange "hyperliquid" is officially supported by the Freqtrade development team.” For other frameworks, see QuantConnect, Freqtrade, Hummingbot or an AI agent.
| Feature | Freqtrade 2026.10 on Hyperliquid |
|---|---|
| Futures (perps) | Isolated and cross margin; stop-loss on exchange as a limit order |
| Spot | Yes; no stop-loss on exchange |
| HIP-3 markets | List each dex in hip3_dexes, for example ["xyz"] |
| Sub-account or vault | One or the other, via ccxt_config options |
download-data | No |
| Market orders | Simulated by CCXT as limit orders with up to 5% slippage |
A minimal Hyperliquid config.json (dry run)
list-pairs needs no wallet: on Nov 17, 2026, freqtrade list-pairs --exchange hyperliquid --trading-mode futures --quote USDC --print-json returned 351 active USDC perps, 122 on the xyz HIP-3 dex. Pairs are named like BTC/USDC:USDC and XYZ-NVDA/USDC:USDC. This config paper-trades three perps:
{
"trading_mode": "futures",
"margin_mode": "isolated",
"dry_run": true,
"dry_run_wallet": 1000,
"stake_currency": "USDC",
"stake_amount": 50,
"max_open_trades": 3,
"timeframe": "1h",
"stoploss": -0.05,
"entry_pricing": {"price_side": "same", "use_order_book": true, "order_book_top": 1},
"exit_pricing": {"price_side": "same", "use_order_book": true, "order_book_top": 1},
"order_types": {
"entry": "limit",
"exit": "limit",
"stoploss": "limit",
"stoploss_on_exchange": true
},
"exchange": {
"name": "hyperliquid",
"walletAddress": "",
"privateKey": "",
"pair_whitelist": ["BTC/USDC:USDC", "ETH/USDC:USDC", "SOL/USDC:USDC"]
},
"pairlists": [{"method": "StaticPairList"}],
"bot_name": "hl-dry-run",
"initial_state": "running",
"internals": {"process_throttle_secs": 5}
}Start it with freqtrade trade --config config.json --strategy SampleStrategy --userdir user_data. stake_amount is in USDC; keep it well above Hyperliquid’s $10 minimum order value. With XYZ-NVDA/USDC:USDC in the whitelist and no hip3_dexes, our run logged “Pair XYZ-NVDA/USDC:USDC is not tradable with Freqtrade” and dropped it; adding "hip3_dexes": ["xyz"] to the exchange block kept it.
Backtest on Hyperliquid data you save yourself
freqtrade download-data --exchange hyperliquid --trading-mode futures --pairs BTC/USDC:USDC --timeframes 1h --days 30 stopped with “Historic data not available for Hyperliquid. Hyperliquid does not support downloading trades or ohlcv data.” Hyperliquid’s API serves only the most recent 5,000 candles per interval. This script saves them with CCXT, plus hourly funding, where freqtrade backtesting looks:
# Save Hyperliquid's most recent 1h candles in Freqtrade's data format, since download-data refuses Hyperliquid.
# Run inside the Freqtrade venv (ccxt comes with it).
from pathlib import Path
import ccxt
import pandas as pd
from freqtrade.data.history import get_datahandler
from freqtrade.enums import CandleType
PAIRS, TF = ["BTC/USDC:USDC", "ETH/USDC:USDC"], "1h"
datadir = Path("user_data/data/hyperliquid")
dh = get_datahandler(datadir, "feather")
ex = ccxt.hyperliquid({"options": {"fetchMarkets": {"types": ["swap"]}}})
for pair in PAIRS:
# Hyperliquid serves only the latest 5,000 candles; ask for 5,000 hours back
since = ex.milliseconds() - 5000 * 3600 * 1000
rows = ex.fetch_ohlcv(pair, TF, since=since, limit=5000)
df = pd.DataFrame(rows, columns=["date", "open", "high", "low", "close", "volume"])
df["date"] = pd.to_datetime(df["date"], unit="ms", utc=True)
df = df.iloc[:-1] # drop the candle that is still open
# futures backtests also read mark candles; last-trade candles stand in for them here
for ct in (CandleType.FUTURES, CandleType.MARK):
dh.ohlcv_store(pair, TF, df, candle_type=ct)
# hourly funding, 500 records per call
funding, t = [], since
while True:
page = ex.fetch_funding_rate_history(pair, since=t, limit=500)
if not page:
break
funding += page
t = page[-1]["timestamp"] + 1
if len(page) < 500:
break
fr = pd.DataFrame({"date": pd.to_datetime([f["timestamp"] for f in funding], unit="ms", utc=True),
"funding_rate": [f["fundingRate"] for f in funding]})
fr["date"] = fr["date"].dt.floor("h")
dh.ohlcv_store(pair, TF, fr, candle_type=CandleType.FUNDING_RATE)
print(pair, len(df), "candles and", len(fr), "funding rates,", df["date"].iloc[0], "to", df["date"].iloc[-1])It saved 4,999 closed 1h candles and 5,000 funding rates per pair (Apr 23 to Nov 17, 2026), and freqtrade backtesting --config config.json --strategy SampleStrategy --userdir user_data --timeframe 1h --pairs BTC/USDC:USDC ETH/USDC:USDC then ran from May 1, after 200 startup candles. The script uses last-trade candles in place of mark-price candles. Older candles drop off the API, so a longer history means running it on a schedule. See how to backtest a crypto strategy.
Going live
- Use an API wallet. Freqtrade’s docs say
walletAddress“should NOT be your API Wallet Address”: use your main address, and put the API wallet’s key inprivateKey. Its docs add that this key won’t allow withdrawals, only trading. See API wallets. - Sub-account or vault: set
ccxt_config.options.subAccountAddressorvaultAddressas the docs show, not both. - Own the account. Freqtrade assumes it is the only trader on a unified account and recommends a sub-account, with no manual trading alongside.
- HIP-3 costs requests. Each dex in
hip3_dexesadds API calls against Hyperliquid’s rate limits, and HIP-3 dexes share collateral with your main account.
Not executed for this guide
Or run the rule on Senpi
Freqtrade runs on your server, with your key. On Senpi, a strategy you confirm runs as code on Senpi’s runtime, and by default no AI model makes live trading decisions. Each strategy trades from its own strategy wallet; the agent holds no key and cannot withdraw.
Senpi doesn’t run backtests; Simulations, paper trading with simulated money, are coming. Hyperliquid charges 0.015% maker and 0.045% taker at the base tier on crypto perps. Senpi adds 0% on paid plans (from $50 a month) and 0.03% on the free trial.
Does Freqtrade support Hyperliquid?
Yes. Freqtrade lists Hyperliquid as officially supported for spot and futures; we ran Freqtrade 2026.10 against it on Nov 17, 2026.
Why does freqtrade download-data fail for Hyperliquid?
Freqtrade marks Hyperliquid as having no historic candle or trade download. Save the latest 5,000 candles with CCXT in Freqtrade’s data format, then backtest.
Can Freqtrade trade HIP-3 markets like xyz stocks?
Yes. Add the dex to exchange.hip3_dexes, for example ["xyz"], and use pair names such as XYZ-NVDA/USDC:USDC.
Does Freqtrade support stoploss_on_exchange on Hyperliquid?
On futures, yes, as a stop-limit order. On spot, no.
Sources: Freqtrade docs (exchanges, exchange features, installation; stable branch), the Freqtrade 2026.10 source (exchange/hyperliquid.py, data/history/history_utils.py) and README; Freqtrade on PyPI; Hyperliquid docs (info endpoint, exchange endpoint). All checked and run Nov 17, 2026.
This is educational material, not financial advice. Leveraged perps can lose money quickly.
Run a strategy without a server
Describe the rule; Senpi runs it on its runtime with a stop from the first fill.
Related articles
What is revenge trading, and how do you stop it?
Revenge trading is trading bigger or faster to win back a loss. Why it happens, the recovery maths that makes it costly, what Hyperliquid data shows, and rules that stop it.
What is the Calmar ratio, and what is a good one?
The Calmar ratio divides annual return by max drawdown. Formula, how to read it, and the one-year Calmar ratio of BTC, ETH, SOL, HYPE, XRP and DOGE on Nov 18, 2026.
How to read Hyperliquid market data: open interest, long/short ratio, funding and liquidations
What open interest, the long/short ratio, funding and liquidations tell you on Hyperliquid, where each number comes from, and how to read them together, with the ten largest perps on Nov 10, 2026.
What is a trailing stop loss, and how do you set one on Hyperliquid?
A trailing stop follows price up and locks in part of the move. Definition, how wide to set it, and BTC, ETH, SOL and HYPE trail sizes on Nov 18, 2026.