Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Automated trading bot system on Binance / Hyperliquid Spot, powered by OpenClaw multi-agent.

boss (you)
    │  Telegram or Discord
    ▼
  coo               ← Coordinator · Routing · Human-in-the-loop
    ├── tech         ← Trading · AI Confirm · Execute
    ├── ops          ← Cron · Watchdog · Health check
    └── finance      ← Risk · PnL · Trailing stop
              │
      ┌───────┴───────┐
      ▼               ▼
  ta_trend      ta_mean_revert   ← Bot workers (Python/FastAPI)

The system runs two parallel loops:

Trading loop (driven by ops, every 5 minutes)

  1. ops scans the market → detects signals
  2. coo sends a checklist to Telegram/Discord → boss confirms YES / NO
  3. If YES → tech performs a final AI analysis (EV > 25%, confidence ≥ 8)
  4. If criteria met → places a bracket order on-chain (entry + stop-loss + take-profit simultaneously)
  5. coo reports the result back to boss

Protection loop (driven by finance, every 1 minute)

  • Moves stop-loss up following price if position is profitable ≥ trigger%
  • Alerts immediately if drawdown exceeds 15%
  • Sends PnL summary report at 21:00 daily

Boss is the sole decision-maker — the system never trades without confirmation.

AgentRole
cooCoordinator — communicates with boss via Telegram/Discord, routes tasks
opsCron market scanner, infrastructure health check
techAI signal confirmation (EV > 25%, confidence ≥ 8), order execution
financeTrailing stop, PnL reports, drawdown alerts