Hyperliquid Trading Bots and Builder Codes: 3commas, Freqtrade, Hummingbot, API Wallets, Grid & TWAP Bots, and How Builder-Code Apps Like Phantom, Based and Dreamcash Work (2026)
Hyperliquid bots guide: 3commas and Freqtrade support, API wallets, Hummingbot and custom Python, grid and TWAP bots, and builder codes explained with apps like Phantom, Based, Dreamcash and Liminal (2026).
Hyperliquid is one of the most bot-friendly exchanges in crypto: zero gas, a maker rebate structure, a fully documented API with a Python SDK, and API wallets that let bots trade without ever holding a key that can withdraw. As of September 2026, 3commas, Freqtrade and Hummingbot all support Hyperliquid, and a parallel ecosystem of builder-code apps — Phantom, Based, Dreamcash, Liminal, Zerion, Okto and others — routes retail orders to Hyperliquid's order book while earning a small fee. This guide explains API wallets, how to set up each bot framework, grid and TWAP strategies, how builder codes work and what they cost you, the builder-code revenue leaderboard, and the safety rules that stop a bot from emptying your account.
Key takeaways
- Always use an API wallet (agent key) for bots: it can trade but cannot withdraw.
- 3commas supports Hyperliquid perps with DCA, grid and signal bots; Freqtrade and Hummingbot connect through CCXT and native connectors.
- Builder codes let apps charge up to 0.1% on perps and 1% on spot on top of Hyperliquid's fees; you approve the fee once per app.
- Builder-code apps (Phantom, Based, Dreamcash, Liminal, Okto, Zerion) have become a major share of Hyperliquid's retail flow and revenue.
- Native TWAP orders exist in the app; grid bots need an external tool.
- Test on testnet first, then go live with small size and isolated margin.
Hyperliquid API wallets: the foundation of every bot
Before any framework, understand the Hyperliquid API wallet, sometimes called an agent wallet. It is the mechanism that makes bots safe on Hyperliquid:
- In the app, go to More > API.
- Click Generate to create a new agent. Give it a name (e.g. "freqtrade-1"). Optionally set an expiry.
- Sign the approval with your main wallet. This registers the agent's public address as authorised to act for your account.
- Copy the agent's private key; this is what your bot uses to sign orders.
What an API wallet can do: place, modify and cancel orders; set leverage; open and close positions; update margin. What it cannot do: withdraw to Arbitrum, transfer to another address, or move funds between accounts. If a bot server is compromised, the attacker can trade your account badly, but cannot drain it. You can revoke an agent at any time from the same page.
A few technical points from the Hyperliquid API guide: the /exchange endpoint has address-based rate limits (roughly 10,000 requests initially, then 1 request per $1 of cumulative traded volume), so a bot that spams cancels on a new account will hit 429 errors; batching orders and using modify instead of cancel-and-replace helps. Signatures use EIP-712 and include the chain identifier, so testnet and mainnet keys are not interchangeable. The hyperliquid-python-sdk handles all of this.
3commas and Hyperliquid
Does 3commas support Hyperliquid? Yes. 3commas added Hyperliquid as an exchange in 2025, initially for perpetual futures, and it has become one of the more popular ways for non-programmers to run a Hyperliquid bot.
What works on 3commas Hyperliquid:
- DCA bots (long and short) with safety orders and take-profit ladders.
- Grid bots on perp markets.
- Signal bots triggered by TradingView webhooks (pairs well with alerts described in the charts guide).
- Smart Trade for manual entries with automated TP/SL.
How to connect:
- Generate an API wallet in the Hyperliquid app as described above.
- In 3commas, go to My Exchanges > Connect exchange > Hyperliquid.
- Enter your main wallet address (the account the bot trades) and the API wallet private key (the agent).
- 3commas verifies the connection and pulls balances.
Limitations as of September 2026: spot market support is partial, some HIP-3 markets are not yet listed in 3commas's pair list, and the platform's fee estimates do not always include hourly funding correctly. 3commas charges its own subscription; Hyperliquid's fees (base 0.045% taker / 0.015% maker, see Hyperliquid fees) apply on every fill, and 3commas orders do not carry a builder fee.
Freqtrade on Hyperliquid
Freqtrade Hyperliquid support arrived through CCXT, and the Freqtrade team has documented Hyperliquid as a supported exchange for both spot and futures. A minimal config.json exchange block:
"exchange": {
"name": "hyperliquid",
"walletAddress": "0xYOUR_MAIN_ACCOUNT_ADDRESS",
"privateKey": "0xYOUR_API_WALLET_PRIVATE_KEY",
"ccxt_config": {},
"ccxt_async_config": {},
"pair_whitelist": ["BTC/USDC:USDC", "ETH/USDC:USDC", "HYPE/USDC:USDC"],
"pair_blacklist": []
},
"trading_mode": "futures",
"margin_mode": "isolated",
"stake_currency": "USDC",
"dry_run": true
Key details:
walletAddressis your main account;privateKeyis the agent key. This is the most common setup mistake. If you use the agent's own address aswalletAddress, orders are rejected because the agent has no balance.- Pair format is
BASE/USDC:USDCfor perps. margin_modeshould beisolatedso a bug in one pair cannot liquidate your whole account.- Testnet: set
"ccxt_config": {"options": {"sandboxMode": true}}or point the URLs toapi.hyperliquid-testnet.xyz; see the testnet and faucet guide. - Backtesting:
freqtrade download-data --exchange hyperliquid --timeframes 5m 1hpulls candles through the same connector. - Order limits: Freqtrade's default order size must respect Hyperliquid's $10 minimum notional and per-asset size decimals.
Freqtrade is free and open source and is the most common choice for people who want to write their own strategy in Python without building the exchange plumbing.
Hummingbot and custom Python bots
Hummingbot ships a native Hyperliquid perpetual connector and is the standard framework for market-making and grid strategies. Its pure market-making, cross-exchange market-making and hedge strategies all run on Hyperliquid, and its V2 strategy framework supports the kind of directional and grid executors people use for a Hyperliquid grid bot. Because Hyperliquid pays a maker rebate at higher tiers and charges no gas, Hummingbot users report lower operating costs than on almost any other DEX.
For custom Python, the official hyperliquid-python-sdk is the shortest path. A skeleton that places a limit order using an API wallet:
import eth_account
from hyperliquid.exchange import Exchange
from hyperliquid.info import Info
from hyperliquid.utils import constants
MAIN = "0xYOUR_MAIN_ACCOUNT"
agent = eth_account.Account.from_key("0xAPI_WALLET_KEY")
info = Info(constants.MAINNET_API_URL, skip_ws=True)
ex = Exchange(agent, constants.MAINNET_API_URL, account_address=MAIN)
mid = float(info.all_mids()["ETH"])
ex.update_leverage(5, "ETH", is_cross=False)
print(ex.order("ETH", True, 0.05, round(mid * 0.995, 1), {"limit": {"tif": "Gtc"}}))
Notice account_address=MAIN: that is how the SDK tells the exchange the agent is acting on behalf of your main account. The Rust and TypeScript SDKs follow the same pattern.
👉 Open the Hyperliquid app and save 4% on fees
TWAP, grid and copy trading on Hyperliquid
Hyperliquid TWAP
The app has a native TWAP order type: you specify total size and duration (minimum 5 minutes), and the exchange slices the order into sub-orders every 30 seconds, each executed as a market order with a slippage cap of 3%. It is designed for entering or exiting large positions without moving the book. Via the API, the twapOrder action exposes the same functionality to bots. TWAP orders pay taker fees on each slice.
Hyperliquid grid bot
There is no native grid order. Options: 3commas grid bots (easiest), Hummingbot grid executors (most configurable), or a custom script that maintains a ladder of resting limit orders. Grid strategies on perps must account for hourly funding, which can exceed the grid's profit per level in trending markets, and for liquidation risk on the accumulated inventory. Isolated margin and a hard maximum position size are essential.
Hyperliquid copy trading
Two routes:
- User vaults — deposit into a leader's vault and receive identical fills, with a 10% profit share to the leader. Simple, transparent, no bot required. Explained in the vaults and HLP guide.
- Mirror bots — a script (or a service like HyperDash's copy feature) watches a target wallet through the WebSocket
userFillsstream and replicates trades in your account with your own sizing and leverage. More control, more latency, more ways to go wrong. The whale tracker guide explains how to pick a wallet worth following and why most are not.
Hyperliquid builder codes explained
Builder codes are the mechanism that turned Hyperliquid into infrastructure for other apps. The idea: any third-party front end can submit orders to Hyperliquid on a user's behalf and attach a builder fee that the exchange collects and pays to the builder. The rules:
- Maximum builder fee: 0.1% (10 bps) on perps and 1% (100 bps) on spot. The builder chooses any rate up to the cap.
- The user must approve the builder fee once by signing an
approveBuilderFeeaction specifying the maximum they will accept from that builder. After that, orders from the app include the builder's address and fee. - The fee is charged on top of Hyperliquid's normal taker/maker fee and is visible in the fill details.
- The builder can be any address; builders need a small amount of staked HYPE and must maintain a minimum account balance.
- Users can revoke the approval at any time in the app under More > API/Builders.
For Hyperliquid this is a distribution strategy: the protocol gets volume and its own fees; the builder gets a revenue share without running an exchange; the user gets Hyperliquid liquidity inside an app they already use. The Hyperliquid builder codes dashboard (community-maintained on Dune and Hypurrscan, with an official view planned) shows fees earned per builder, and it has become a leaderboard in its own right.
Builder-code apps you will run into
| App | What it is | Builder fee (typical) | Notes |
|---|---|---|---|
| Phantom | Wallet with built-in Hyperliquid perps on mobile | Up to 0.1% perps | "Phantom perps" launched 2025; huge retail reach from Solana users |
| Based | Consumer mobile trading app | Around 0.05–0.1% | Social features, simplified perps UI; one of the top builders by revenue |
| Dreamcash | Retail-first trading app with gamified UX | Up to 0.1% | Fast-growing 2026 builder |
| Liminal | Yield and structured-product app using HL perps | Varies | Also a HIP-3 participant; delta-neutral vaults |
| Okto | Mobile wallet and trading super-app | Up to 0.1% | Large builder-code volumes from Asia |
| Zerion | Portfolio wallet with integrated HL trading | Varies | "Hyperliquid Zerion" integration lets you trade perps from the portfolio view |
| Lootbase / Dexari / Liquid | Mobile-native Hyperliquid front ends | Up to 0.1% | Discussed in the Hyperliquid app guide |
| Axiom, Insilico, others | Trading terminals | Varies | Pro-oriented interfaces |
Builder-code volume grew to a meaningful share of Hyperliquid's total by 2026, and the top builders earn millions per month. That revenue is separate from the protocol fees that fund the Assistance Fund's HYPE buybacks; see Hyperliquid revenue, volume and valuation.
Builder codes vs HIP-3
Do not confuse builder codes with HIP-3. Builder codes let apps route orders to existing markets and take a fee. HIP-3 lets deployers stake 500,000 HYPE to create new markets (stocks, indices, commodities) and set their own fee share. Some projects do both — Liminal and Kinetiq, for instance — but they are different mechanisms. Details on HIP-3 are in the HIP-3 builder markets guide.
What builder codes cost you
If you trade through Phantom, Based or Dreamcash, you pay Hyperliquid's fee plus the builder's fee. On a $10,000 perp trade at base taker rate, that is $4.50 to Hyperliquid and up to $10 to the builder. Trading directly on app.hyperliquid.xyz with a referral link costs $4.32 (4% off) and no builder fee. The convenience is real, but so is the cost; heavy traders should trade directly or through a bot with no builder code. Check any app's builder fee before approving it, and remember the approval sets a maximum the app can charge.
Hyperliquid bots compared
| Tool | Type | Cost | Strategies | Skill needed | Builder fee? | Testnet support |
|---|---|---|---|---|---|---|
| 3commas | Hosted SaaS | Subscription | DCA, grid, signal, smart trade | Low | No | Limited |
| Freqtrade | Open-source, self-hosted | Free | Custom Python strategies, backtesting | Medium | No | Yes |
| Hummingbot | Open-source, self-hosted | Free | Market making, grid, arbitrage, executors | Medium–high | No | Yes |
| Custom Python / Rust / TS SDK | Self-built | Free | Anything | High | No | Yes |
| Native TWAP | In-app order type | Free | Time-sliced execution | None | No | Yes |
| User vaults | Native copy trading | 10% of profits to leader | Follow a trader | None | No | Yes |
| Mirror / copy bots | Scripts or services | Free to paid | Replicate a wallet | Medium | Sometimes | Yes |
| Builder-code apps (Phantom, Based, Dreamcash) | Consumer front ends | Builder fee up to 0.1% | Manual trading, some automation | None | Yes | No |
Bot safety on Hyperliquid
Bots lose money in predictable ways. A checklist:
- Never put your main private key in a bot. API wallet only. Set an expiry on agents you do not use daily.
- Run on testnet first, then on mainnet with $100, then scale. The testnet guide has the endpoints.
- Use isolated margin per market so a runaway strategy cannot liquidate unrelated positions.
- Hard-code a maximum position size and a kill switch. Freqtrade's
max_open_tradesandstake_amountlimits, Hummingbot'skill_switch, or a manual check in your loop. - Handle 429 and 422 errors explicitly. A bot that retries a rejected order in a tight loop will burn its rate-limit buffer and can be blocked.
- Model hourly funding. A grid or basis strategy that ignores funding can bleed 1–3% a day in extreme conditions; see funding rates.
- Watch for ADL. In a crash, profitable positions can be auto-deleveraged; a bot expecting to close at a target may find the position already gone. Explained in leverage and liquidation.
- Log everything and reconcile against
userFillsdaily. Silent state drift between bot and exchange is the root of most "the bot did something weird" stories. - Verify builder fees before approving and revoke approvals for apps you stop using.
- Secure the server. Bots run on VPSs with SSH keys in
.envfiles; treat that box like a wallet.
Risk note: automated leveraged trading can lose your entire margin faster than manual trading; nothing here is investment advice.
Bottom line
Hyperliquid's zero-gas order book, maker rebates and API wallets make it the natural home for trading bots: 3commas covers the no-code crowd, Freqtrade and Hummingbot cover Python users, and the official SDKs cover everyone else, all without ever exposing a key that can withdraw. Builder codes extend the same order book into Phantom, Based, Dreamcash, Liminal, Zerion and dozens of other apps at a cost of up to 0.1% per perp trade, which is convenient for casual users and a reason for serious traders to go direct. Start on testnet, use an API wallet with isolated margin, set hard limits, and connect through the Hyperliquid app DEX referral link so your bot's fees start 4% lower. Official API documentation is at the Hyperliquid docs.
Frequently Asked Questions
Does 3commas support Hyperliquid?
Yes. 3commas added Hyperliquid as a supported exchange in 2025 for perpetual futures, including DCA, grid and signal bots. You connect it with an API wallet (agent key) generated in the Hyperliquid app rather than your main private key, so 3commas can trade but never withdraw. Some advanced order types and spot markets have partial support.
What is a Hyperliquid API wallet?
An API wallet, also called an agent wallet, is a separate key you authorise from your main account in the Hyperliquid app under More > API. It can place and cancel orders and manage positions for your account, but it cannot withdraw funds or transfer them out. Every bot, from 3commas to a custom script, should use one instead of your master key.
What are Hyperliquid builder codes?
Builder codes let third-party apps route orders to Hyperliquid and attach a small extra fee that the app earns, capped at 0.1% on perps and 1% on spot. The user approves the builder fee once. Apps like Phantom, Based, Dreamcash, Liminal, Okto and Zerion use builder codes to offer Hyperliquid trading inside their own interfaces. Details in the fees guide.
Can I run Freqtrade on Hyperliquid?
Yes. Freqtrade supports Hyperliquid through CCXT for both spot and perpetual futures. Configure the exchange as hyperliquid, set walletAddress to your main account and privateKey to an API wallet key, choose trading_mode futures with isolated margin, and test on testnet first. Backtesting uses Hyperliquid candles downloaded through the same connector.
Is there a grid bot for Hyperliquid?
Hyperliquid has no built-in grid bot, but 3commas, Hummingbot and several community tools run grid strategies against its order book using the API. Because Hyperliquid has zero gas and a maker rebate structure, grid bots are cheaper to run than on most DEXs, though the hourly funding rate on perps has to be modelled.
Is Hyperliquid copy trading available through bots?
Yes, in two ways. Native user vaults let you deposit into a trader's vault and receive their fills automatically with a 10% profit share. Alternatively, bots and services like HyperDash mirror a target wallet's positions into your own account via the API. Vaults are simpler and more transparent; mirror bots give you control over sizing and leverage.
Ready to trade on the Hyperliquid app?
Open the official Hyperliquid DEX with our referral link and get a lifetime 4% discount on trading fees. No KYC, no gas fees, self-custody.
Open Hyperliquid App · Save 4%Disclaimer: This article is for educational purposes only and is not financial, investment or legal advice. Perpetual futures trading with leverage carries a high risk of loss. Read our full disclaimer.