Skip to content

kv1sidisi/market-launch

Repository files navigation

Market Launch Bot

Event-driven bot for BingX Spot listings. You set the listing time and budget, the bot waits for trading to open, buys with IOC, and tries to exit fast. It never auto-sells at a loss; if breakeven is not possible, it leaves the position open and notifies you.

How It Behaves

  • Watches a single configured listing around the expected start time
  • Entry: IOC limit buy at ask + aggressiveness, capped by max price
  • Fast exit: GTC limit sell at target profit
  • After timeout: exit only at breakeven or better, otherwise manual

Setup

  1. cp config.example.yaml config.yaml
  2. Edit config.yaml
  3. Put credentials in .env (preferred) or export them:
    • BINGX_API_KEY="..."
    • BINGX_API_SECRET="..."

Run (Docker)

  1. docker-compose up -d
  2. docker-compose logs -f bot

Run (Local)

  1. go build -o bot ./cmd
  2. ./bot -config config.yaml

Check Symbol (CLI)

Use the same visibility checks as the bot (no trading):

  • ./bot -check-symbol SPACE-USDT

List all spot symbols for a base asset:

  • ./bot -check-base SPACE

The bot detects trading open via both ticker and order book depth (REST/WS), and logs the source.

Mock Exchange (Local)

Start a mock BingX API+WS server that lists a symbol at a scheduled time:

go build -o mock ./cmd/mock
./mock -symbol SPACE-USDT -list-in 90s -appear-in 60s

Then run the bot against the mock:

export BINGX_BASE_URL="http://127.0.0.1:8080"
export BINGX_WS_URL="ws://127.0.0.1:8080/ws"
./bot -config config.yaml

About

Event-driven bot for BingX Spot listings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors