whatisgithub

What is hyperliquid-trading-bot?

lucaratiu/hyperliquid-trading-bot — explained in plain English

Analysis updated 2026-05-18

136TypeScriptAudience · generalComplexity · 3/5Setup · moderate

In one sentence

A configurable grid trading bot for Hyperliquid perpetuals that automatically places and refreshes buy and sell orders across a price range.

Mindmap

mindmap
  root((Hyperliquid grid bot))
    What it does
      Grid trading strategy
      Automatic order refresh
      Risk limit controls
      Auto rebalancing
    Tech stack
      TypeScript
      Node.js
      Hyperliquid SDK
    Use cases
      Trade perpetual grids
      Manage drawdown risk
      Test on testnet first
    Audience
      Crypto traders
      Automation hobbyists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a grid trading strategy on Hyperliquid perpetual contracts.

USE CASE 2

Set risk limits such as maximum drawdown, stop-loss, and take-profit for a grid.

USE CASE 3

Test a trading configuration safely on Hyperliquid's testnet before using real funds.

What is it built with?

TypeScriptNode.jsHyperliquid SDK

How does it compare?

lucaratiu/hyperliquid-trading-botamet2901/asterdex-trading-botbonny1220/solana-trading-bot
Stars136136136
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/54/54/5
Audiencegeneralgeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires a Hyperliquid wallet private key set as an environment variable, test on testnet before mainnet.

No license information is stated in the README.

So what is it?

This is a grid trading bot for Hyperliquid, a decentralized exchange for perpetual contracts. Grid trading is a strategy where you place a series of buy orders at prices below the current market price and sell orders above it, arranged in a grid pattern. When the price moves up or down, orders fill automatically and the bot replaces them to keep the grid in place, aiming to profit from the back-and-forth movement of prices over time. The bot is written in TypeScript and runs on Node.js version 20.19 or later. You configure it through YAML files stored in a folder called bots, where you specify the trading pair, how many grid levels to create, the price range, and various risk limits. Risk controls include a maximum drawdown percentage, a cap on how large a position can grow relative to your account, and optional stop-loss and take-profit levels. If the market price drifts far from the center of the grid, the bot can rebalance the grid automatically. Setup involves cloning the repository, installing dependencies with npm, creating a configuration file, and setting your Hyperliquid wallet private key as an environment variable. The bot supports both the Hyperliquid testnet (a practice environment with no real money) and the live mainnet. The README strongly recommends testing on testnet and with small amounts before trading real funds. When stopped with Ctrl+C, the bot cancels any open orders but leaves existing positions unchanged. Logging is configurable with four verbosity levels. The project uses the official Hyperliquid SDK for placing and tracking orders and a WebSocket connection to receive live price data. The README includes a safety note stating the software is provided for automation at the user's own risk and the authors are not responsible for trading losses. It also advises against storing private keys inside the repository.

Copy-paste prompts

Prompt 1
Explain how grid trading works and how this bot implements it on Hyperliquid.
Prompt 2
Show me an example YAML config for setting up a grid with risk limits.
Prompt 3
How do I switch this bot between Hyperliquid testnet and mainnet?
Prompt 4
What happens to open orders and positions when I stop this bot with Ctrl+C?

Frequently asked questions

What is hyperliquid-trading-bot?

A configurable grid trading bot for Hyperliquid perpetuals that automatically places and refreshes buy and sell orders across a price range.

What language is hyperliquid-trading-bot written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Hyperliquid SDK.

What license does hyperliquid-trading-bot use?

No license information is stated in the README.

How hard is hyperliquid-trading-bot to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is hyperliquid-trading-bot for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.