# Hyperliquid trading bot setup: API keys, testnet and fees

> How to run a trading bot on Hyperliquid: what its API keys can do, testnet, fees, rate limits and who&#x27;s restricted. Sourced from Hyperliquid&#x27;s own docs.

Canonical: https://tradingagentstack.com/hyperliquid-trading-bot/

1. [Home](https://tradingagentstack.com/)

2. [Perp DEXs for bots](https://tradingagentstack.com/best-perp-dex-for-trading-bots/)

3. Hyperliquid

# Hyperliquid trading bot setup (2026): keys, testnet, fees and limits

Order-book perps and spot on Hyperliquid's own chain; you sign with your own wallet. Here's how to run a trading bot or AI agent on it without handing it more power than it needs. Every fact links Hyperliquid's own docs, checked Oct 30, 2026.

**Watch out:** Market-manipulation losses have landed on the HLP vault twice in the past year.

| Safety score | [Safety 50%](https://tradingagentstack.com/tool/hyperliquid/) |
| --- | --- |
| Bot key | Agent keys trade, can't withdraw [source](https://app.hyperliquid.xyz/API) |
| Testnet | Yes [source](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits) |
| Base fees (maker / taker) | 0.015% / 0.045% [source](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees) |
| Rate limits | REST: 1,200 weight per minute per IP. [source](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits) |
| Anyone can check an account's results | Yes, any account [source](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint) |
| Restricted | US, Ontario [source](https://app.hyperliquid.xyz/terms) |
| Builder codes | Up to 0.1% on perps and 1% on spot; the user approves a max fee from the main wallet. [source](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/builder-codes) |
| Referrals | Create a code after $10,000 of volume; 10% of referees' fees, less their discount. [source](https://hyperliquid.gitbook.io/hyperliquid-docs/referrals) |

## Set up a bot on Hyperliquid, step by step

1. **Make sure you're on the real site.** Fake trading sites and bots copy every big exchange. Before you connect a wallet, [check Hyperliquid's official links](https://tradingagentstack.com/check/hyperliquid/).

2. **Give the bot its own account.** Put the bot in a separate sub-account or wallet with only the money it needs, so a bug or a leaked key can't reach the rest.

3. **Create the bot's key.** Use a key that can trade but not send money out. API (agent) wallets can trade for your account but can't withdraw or transfer. [docs](https://app.hyperliquid.xyz/API)

4. **Run it on testnet first.** Public testnet (api.hyperliquid-testnet.xyz). [docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits)

5. **Stay inside the rate limits.** REST: 1,200 weight per minute per IP. [docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits)

6. **Count the fees.** Base tier: 0.015% maker, 0.045% taker (14-day volume tiers). [docs](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees)

7. **Put limits outside the bot.** A bot can't be trusted to police itself. [TAS Guard](https://tradingagentstack.com/guard/) adds order caps, phone approval and a kill switch in front of an AI agent, including Hyperliquid and EVM wallets.

8. **Let your results speak.** Any account's fills, positions and PnL can be read from the public info API; vaults are public. [docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint) That means a bot's record can be checked by anyone. We publish verified results for Hyperliquid on [this page](https://tradingagentstack.com/ai-trading-leaderboard/). [Get your agent verified](https://tradingagentstack.com/get-your-ai-agent-verified/).

## AI agent tools

No official MCP server; community ones only. [source](https://hyperliquid.gitbook.io/hyperliquid-docs)

## Code and audits

Our directory lists no public source code or audit report for its core software. [source](https://tradingagentstack.com/tool/hyperliquid/)

## Incidents, last 12 months

- Apr 9, 2026: A FARTCOIN pump and self-liquidation pushed a losing position onto the HLP vault (about $1.5M); HLP depositors bore it. [news report](https://forklog.com/en/unknown-attackers-exploit-hyperliquid-storage-via-fartcoin-pump/amp)

- Nov 13, 2025: POPCAT price manipulation left about $4.9M of bad debt in HLP; bridge withdrawals paused for about an hour. [news report](https://cointelegraph.com/news/hyperliquid-hlp-popcat-attack-3m-wipeout)

## FAQ

### Can I run a trading bot on Hyperliquid?

Yes. Hyperliquid has an API for automated trading. API (agent) wallets can trade for your account but can't withdraw or transfer.

### Does Hyperliquid have a testnet?

Public testnet (api.hyperliquid-testnet.xyz).

### Can a Hyperliquid API key withdraw my funds?

API (agent) wallets can trade for your account but can't withdraw or transfer.

### Can US residents use Hyperliquid?

No. Hyperliquid's terms restrict: US and Ontario (Canada) restricted by the terms, plus sanctioned places.

### What are Hyperliquid's trading fees for bots?

Base tier: 0.015% maker, 0.045% taker (14-day volume tiers).

## Compare

- [Hyperliquid vs Lighter for trading bots](https://tradingagentstack.com/hyperliquid-vs-lighter-for-trading-bots/)

- [Hyperliquid vs Aster for trading bots](https://tradingagentstack.com/hyperliquid-vs-aster-for-trading-bots/)

- [Hyperliquid vs dYdX for trading bots](https://tradingagentstack.com/hyperliquid-vs-dydx-for-trading-bots/)

- [All 9 perp DEXs compared for bots](https://tradingagentstack.com/best-perp-dex-for-trading-bots/)

- [Hyperliquid Safety score and tool page](https://tradingagentstack.com/tool/hyperliquid/)

- [Hyperliquid official links check](https://tradingagentstack.com/check/hyperliquid/)

Other exchanges: [Lighter](https://tradingagentstack.com/lighter-trading-bot/) · [Aster](https://tradingagentstack.com/aster-trading-bot/) · [dYdX](https://tradingagentstack.com/dydx-trading-bot/) · [GMX](https://tradingagentstack.com/gmx-trading-bot/) · [Paradex](https://tradingagentstack.com/paradex-trading-bot/) · [Extended](https://tradingagentstack.com/extended-trading-bot/) · [Pacifica](https://tradingagentstack.com/pacifica-trading-bot/) · [edgeX](https://tradingagentstack.com/edgex-trading-bot/)

Facts from Hyperliquid's docs, terms and GitHub, read Oct 30, 2026; news reports are marked. Fees and limits change: confirm on Hyperliquid's site. No referral links. Not financial advice.

## For agents

- [When to use this site, and the page index](https://tradingagentstack.com/llms.txt)
- [Sitemap](https://tradingagentstack.com/sitemap.xml)
- [Contact](https://tradingagentstack.com/contact/)
- [MCP server](https://tradingagentstack.com/mcp/)
- [MCP discovery](https://tradingagentstack.com/.well-known/mcp)
