
Title How to Set Up a DCA Bot on Hyperliquid (Step-by-Step)
A step-by-step guide to running a DCA bot on Hyperliquid: generate a trade-only API wallet, connect it with three fields, configure margin, leverage and exit rules, then backtest and launch in about five minutes.
To run a DCA bot on Hyperliquid, generate a trade-only API wallet on Hyperliquid, connect it to a bot platform such as Bitsgap using three fields — API wallet, private key, and main wallet — then configure a DCA Futures bot (pair, direction, margin, leverage, exit rules) and launch. Once your Hyperliquid account is funded, the setup takes about five minutes.
TL;DR
- Hyperliquid is a perpetuals DEX, so DCA here runs as a DCA Futures bot with leverage and margin — not spot accumulation.
- You connect with an API (agent) wallet that can trade but never withdraw your funds.
- Five steps: generate the API wallet → connect it to Bitsgap with three fields → choose pair and direction → set margin, leverage and TP/SL → backtest and launch.
- No Hyperliquid account yet? Create one first, fund it with USDC, then come back to Step 1.
- Test in demo or backtest before going live. Perps carry liquidation risk that spot DCA does not.
- Unsure DCA is the right tool? Compare GRID vs DCA vs COMBO before you commit capital.
Before you start
You need three things:
- A funded Hyperliquid account. Margin on Hyperliquid is posted in USDC, so deposit collateral first. If you don't have an account yet, create a Hyperliquid account and fund it before continuing.
- A bot account. A free Bitsgap account lets you build and test in demo mode against live prices before going live.
- Five minutes.
Step 1: Generate a trade-only API wallet on Hyperliquid
Hyperliquid doesn't use the classic API key plus secret. It uses an API wallet (also called an agent wallet) that signs orders on behalf of your main account and cannot move funds. That's the property you want: the bot can trade while withdrawals stay impossible at the protocol level.
Open the Hyperliquid API page, generate a new API wallet, name it, and authorize it. You'll end up with three values that Bitsgap asks for in the next step:
- API wallet — the agent wallet's address that Hyperliquid generates.
- Private key — the API wallet's private key. Copy it now; it's shown once.
- Main wallet — your own account address, the wallet that holds your USDC collateral.
Step 2: Connect Hyperliquid to Bitsgap
In Bitsgap, open My Exchanges → Add new exchange, then select Hyperliquid from the Exchange dropdown. The form asks for three fields, which map directly to what you copied in Step 1:
- API wallet — paste the agent wallet address.
- Private key — paste the API wallet's private key.
- Main wallet — paste your own account address.
Click Connect. If you don't have an account yet, the same screen has a Create it now link that takes you straight to Hyperliquid registration.
Bitsgap automatically rejects any key with withdrawal permissions. A Hyperliquid API wallet has none by design, so it passes the check. If you want the reasoning behind trade-only keys — and what goes wrong when people skip them
Full field-by-field walkthrough: How to Connect Your Exchange to Bitsgap.

Link your Hyperliquid account to Bitsgap in under a minute and build your first bot in demo mode before risking real funds.
Step 3: Open the DCA bot and pick your pair
Go to Bots → Start New Bot, switch to the Futures section, and select DCA Futures Bot. Choose Hyperliquid as the exchange and pick a pair (for example, BTC/USDC).
Then set a direction:
- Long — average into a position as price falls, lowering your entry while you expect a recovery.
- Short — average into a position as price rises, building exposure to a decline.
The direction decides which way the averaging grid leans, so pick it from your market view before touching any other setting.
Step 4: Set margin, leverage and exit rules
Three settings define the bot's behavior, and they interact, so set them together rather than one at a time:
- Initial margin — the USDC you commit to the position. The averaging orders draw from this, so size it for the full grid, not just the first entry.
- Leverage — your position size relative to margin. Higher leverage moves your liquidation price closer, so raise it with caution. Set Hyperliquid to One-way Mode so the bot functions correctly.
- Take Profit / Stop Loss — TP closes the averaged position once your target is reached; SL caps the downside before liquidation ever becomes a question.
A conservative starting point for testing — illustrative, not advice — is low leverage (1x–2x), a handful of averaging orders, and a defined Stop Loss. Tune the numbers from your backtest results.
Step 5: Backtest, then launch
Before committing real margin, run the configuration through Backtest to see how the same settings would have behaved over a recent period, or start it in demo mode to watch it trade live prices without real funds. Check that the bot actually fills orders, that margin lasts across the full averaging grid, and that your Stop Loss sits where you intended.
When the behavior matches your plan, switch to live and launch. You can pause, edit, or close the bot at any point from the Bots dashboard.
A quick word on risk
A DCA Futures bot on Hyperliquid runs with leverage, so it carries liquidation risk that spot DCA does not. If price moves against an averaged position far enough, the position can be liquidated before your averaging logic plays out. Leverage shortens that distance, and a wide averaging grid consumes margin faster than people expect. A defined Stop Loss, conservative leverage, and a backtest you actually read are what keep the setup inside the risk you chose. Past performance of any configuration, in backtest or demo, does not indicate future results.
FAQ
Is a DCA bot on Hyperliquid spot or futures? Futures. Hyperliquid is a perpetuals DEX, so a DCA bot there runs as a DCA Futures bot with margin and leverage.
Can the bot withdraw my funds? No. You connect with a Hyperliquid API wallet, which signs trades on behalf of your account but cannot move funds off the exchange. Bitsgap also rejects any key that carries withdrawal permission.
How much do I need to start? Whatever you set as initial margin. Start small, run it in demo or backtest, and scale only after you understand how the averaging grid and your Stop Loss interact.
DCA or GRID on Hyperliquid? DCA builds and averages a single directional position; GRID profits from oscillation inside a range. The GRID vs DCA vs COMBO guide breaks down which fits which market.Start your first DCA bot