explaingit

amet2901/asterdex-trading-bot

Analysis updated 2026-05-18

136TypeScriptAudience · generalComplexity · 4/5Setup · moderate

TLDR

A self-hosted crypto perpetual-futures trading bot with trend-following and market-making strategies for AsterDex, GRVT, and Hyperliquid.

Mindmap

mindmap
  root((Perpetuals trading bot))
    What it does
      Automated order placement
      Trend following strategy
      Market making strategy
      Position and risk tracking
    Tech stack
      TypeScript
      Bun runtime
      pm2 process manager
    Use cases
      Trade perpetual contracts
      Run unattended background bot
      Recover state after restart
    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 an automated trend-following strategy on perpetual futures across three exchanges.

USE CASE 2

Run a market-making strategy that profits from the spread between buy and sell orders.

USE CASE 3

Operate the bot unattended in the background using pm2 with silent mode.

What is it built with?

TypeScriptBunpm2

How does it compare?

amet2901/asterdex-trading-botbonny1220/solana-trading-botflaviodesa/polymarket-copy-trading-bot
Stars136136136
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity4/54/52/5
Audiencegeneralgeneraldeveloper

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

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires exchange API keys, manual leverage setup, an accurate system clock, and at least 50-100 USDT of capital.

No license information is stated in the README.

In plain English

This is an automated trading bot for cryptocurrency perpetual contracts, designed to work with three exchanges: AsterDex, GRVT, and Hyperliquid. Perpetual contracts are a type of derivative that lets traders speculate on the price of an asset like Bitcoin without owning it directly. The bot runs on your own computer or server and places buy and sell orders automatically based on rules you configure. It ships with two built-in trading strategies. The first is a trend-following strategy that uses a 30-period moving average to decide when to enter a trade, combined with a trailing stop and a filter based on price volatility. The second is a market-making strategy that continuously places orders on both sides of the order book, aiming to profit from the spread between buy and sell prices. Both strategies track open positions and risk limits in real time and can recover their state automatically if the program restarts. Setup involves cloning the repository, installing the Bun JavaScript runtime, copying an example configuration file, and filling in your exchange API keys and trading parameters. The configuration file controls things like which asset to trade, the maximum loss allowed per trade, order sizes, and timing. Once running, a terminal-based menu lets you pick a strategy interactively. You can also skip the menu and start a strategy directly from the command line in silent mode, which is useful for running the bot as a background process using a tool called pm2. The README notes several practical requirements before going live: you need at least 50 to 100 USDT of available capital, you must set your leverage on the exchange manually before starting (around 50x is suggested), and your system clock should be accurate to avoid authentication errors. For Hyperliquid, the bot uses a wallet private key directly, so the README specifically advises using a dedicated trading wallet rather than a primary one. The project includes a disclaimer that algorithmic trading carries real financial risk and recommends testing with paper accounts or small amounts before committing real capital.

Copy-paste prompts

Prompt 1
Walk me through setting up this trading bot's configuration file with my exchange API keys.
Prompt 2
Explain the difference between this bot's trend-following and market-making strategies.
Prompt 3
What precautions does the README recommend before using a real Hyperliquid wallet key?
Prompt 4
How do I run this bot as a background process with pm2 in silent mode?

Frequently asked questions

What is asterdex-trading-bot?

A self-hosted crypto perpetual-futures trading bot with trend-following and market-making strategies for AsterDex, GRVT, and Hyperliquid.

What language is asterdex-trading-bot written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, pm2.

What license does asterdex-trading-bot use?

No license information is stated in the README.

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

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

Who is asterdex-trading-bot for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.