Trading Tools & Strategies

Three open-source Hyperliquid bot examples: a 15-minute MA crossover bot, a directional funding carry bot, and a perpetual grid bot. Use referral code HIPERWIRE for 4% off trading fees.

Getting Started

Run the linked repo from its root with the actual entrypoints it exposes today.

Setup
bash

1. Clone the repo

$ git clone https://github.com/atlasdetitan/hyperliquid-trading-bots.git

$ cd hyperliquid-trading-bots

2. Install dependencies from the repo root

$ python3 -m pip install -r requirements.txt

3. Configure credentials for live trading

$ printf 'PRIVATE_KEY=0x...\\n' > .env

Set PRIVATE_KEY in .env. If you use an agent wallet, generate it at app.hyperliquid.xyz/API and add ACCOUNT_ADDRESS for the authorizing main wallet. The funding bot's --scan-only mode can skip this step.

4. Run one of the real entrypoints

Hyperliquid Moving Average Crossover Bot

$ python3 strategies/ma_crossover/bot.py --symbol BTC --fast 10 --slow 30 --size 0.001 --interval 60

Hyperliquid Funding Rate Carry Bot

$ python3 strategies/funding_arb/bot.py --threshold 0.01 --size 0.01 --interval 300 --max-positions 3 --max-hold-hours 12

Hyperliquid Grid Bot

$ python3 strategies/grid_bot/bot.py --symbol ETH --levels 10 --spacing 0.5 --size 0.01 --interval 30

DEPLOY ON HYPERLIQUID

Run these bots on the fastest on-chain perpetuals exchange