whatisgithub

What is hyperliquid-trading-bot?

metanode-trade/hyperliquid-trading-bot — explained in plain English

Analysis updated 2026-05-18

101TypeScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A YAML-configured grid trading bot for Hyperliquid perpetual contracts that automatically places buy and sell orders across a price range.

Mindmap

mindmap
  root((Hyperliquid Grid Bot))
    What it does
      Grid trading strategy
      YAML configuration
      Auto rebalancing
    Tech stack
      TypeScript
      Node.js
      Hyperliquid API
    Use cases
      Automated perp trading
      Testnet experimentation
      Risk-limited trading
    Audience
      Developers
      Crypto traders

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 an automated grid trading strategy on a Hyperliquid perpetual contract using a YAML config file.

USE CASE 2

Test a trading strategy safely on Hyperliquid's testnet before risking real funds.

USE CASE 3

Set drawdown and position size limits to cap risk on an automated trading strategy.

What is it built with?

TypeScriptNode.jsHyperliquid APIWebSocket

How does it compare?

metanode-trade/hyperliquid-trading-botjazzband/web3-devkit-cligonemedia/aipointer
Stars10110198
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencedeveloperdevelopergeneral

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Hyperliquid private key and Node.js 20.19+, strongly recommended to start on testnet before using real funds.

You can use, modify, and distribute this code freely, including commercially, as long as you keep the license and copyright notices.

So what is it?

This repository is a trading bot that runs automated buy and sell orders on Hyperliquid, a crypto exchange that specializes in perpetual contracts. A perpetual contract is a type of trade where you bet on whether an asset's price will go up or down, without owning the asset itself. The bot uses a strategy called grid trading, which involves placing a set of buy and sell orders at evenly spaced price levels across a range. When the price bounces up and down within that range, the bot collects the difference between its buy and sell prices repeatedly. Setting up the bot does not require editing any code. All the trading parameters live in a YAML file: you choose which asset to trade, how many price levels to create, and whether to set the price range manually or let the bot calculate it automatically as a percentage around the current market price. Risk controls are also configured in that same file, including a maximum drawdown limit that halts new orders if losses exceed a threshold, a cap on how large the overall position can grow, and optional stop-loss and take-profit levels. The bot connects to Hyperliquid via a live price feed and a REST interface for placing orders. When the price moves far enough that the grid becomes unbalanced, the engine rebalances the orders. When you stop the bot with Ctrl+C, it cancels all open orders but does not automatically close any open positions, so you need to check your exposure manually before shutting down. The setup requires Node.js version 20.19 or later. After cloning the repository and installing dependencies, you put your Hyperliquid private key in an environment file and point the bot at one of the included YAML config examples. The README specifically recommends starting on the testnet, which is a version of the exchange that uses fake funds, before running with real money. Private keys give full account access, so the README cautions against storing them inside the repository. The code is written in TypeScript and licensed under Apache 2.0. It is structured for solo or small-team use: one config file per bot strategy, a simple command-line interface, and no external database or cloud dependency.

Copy-paste prompts

Prompt 1
Walk me through setting up this Hyperliquid grid trading bot on testnet with fake funds first.
Prompt 2
Explain how grid trading works and how this bot's YAML config controls the price levels.
Prompt 3
Help me write a conservative risk_management section for this bot's config file.
Prompt 4
What happens to my open positions when I stop this bot with Ctrl+C?

Frequently asked questions

What is hyperliquid-trading-bot?

A YAML-configured grid trading bot for Hyperliquid perpetual contracts that automatically places 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 API.

What license does hyperliquid-trading-bot use?

You can use, modify, and distribute this code freely, including commercially, as long as you keep the license and copyright notices.

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

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is hyperliquid-trading-bot for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.