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.
- 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
cp config.example.yaml config.yaml- Edit
config.yaml - Put credentials in
.env(preferred) or export them:BINGX_API_KEY="..."BINGX_API_SECRET="..."
docker-compose up -ddocker-compose logs -f bot
go build -o bot ./cmd./bot -config config.yaml
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.
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