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

Repo Structure

opentrader/
├── README.md
├── README.vi.md
├── .env.example
├── .dockerignore
├── Dockerfile               # 2-stage build → image opentrader-bot
├── docker-compose.yml       # 3 services: openclaw + 9router + opentrader-bot
├── requirements.txt         # pip dependencies
│
├── app/                     # Main Python package
│   ├── __init__.py
│   ├── main.py              # FastAPI entry point (uvicorn app.main:app)
│   ├── bot.py               # CLI: scan / trade / trailing / status
│   ├── config.py            # Reads config.toml → typed config objects
│   ├── dashboard.py         # Web dashboard (FastAPI router)
│   ├── license.py           # License validation client
│   │
│   ├── adapters/            # Exchange adapters
│   │   ├── __init__.py
│   │   ├── base.py          # ExchangeAdapter (abstract base class)
│   │   ├── binance.py       # Binance Spot (OCO bracket order)
│   │   └── hyperliquid.py   # Hyperliquid Perp
│   │
│   └── strategies/          # Scan strategy plugins
│       ├── __init__.py      # Registry + get_strategy(name)
│       ├── base.py          # BaseStrategy (abstract)
│       ├── default_filter.py# Default: VWAP / EMA / RSI / Volume
│       └── ta_filter.py     # Classic: RSI / MACD / Bollinger / Volume
│
├── config/                  # Configuration (mounted as volume on deploy)
│   └── config.toml          # Central config: exchange, risk, watchlist, strategy
│
├── docs/                    # mdBook documentation
│   ├── book.toml
│   ├── src/                 # English docs
│   │   ├── SUMMARY.md
│   │   └── ...
│   └── vi/                  # Vietnamese docs
│       └── src/
│           ├── SUMMARY.md
│           └── ...
│
└── openclaw/                # OpenClaw multi-agent configs
    ├── openclaw.json        # Agents + channels config
    ├── cron/
    │   └── jobs.json        # Cron jobs (scan 5m, trailing 1m, health 1h, PnL 21:00)
    ├── workspaces/
    │   ├── SOUL-vs-AGENTS.md
    │   ├── coo/
    │   │   ├── AGENTS.md    # Routing rules, alert formats, human-in-the-loop
    │   │   └── SOUL.md      # Personality: coordinator, communicator
    │   ├── finance/
    │   │   ├── AGENTS.md    # AI confirm, execute, trailing, PnL, drawdown
    │   │   └── SOUL.md      # Personality: precise, cold entry, honest reports
    │   ├── ops/
    │   │   ├── AGENTS.md    # Health check, watchdog, infra alerts
    │   │   └── SOUL.md      # Personality: systematic, vigilant
    │   ├── tech/
    │   │   ├── AGENTS.md    # Backend debug, system check, infra
    │   │   └── SOUL.md      # Personality: methodical, thorough
    │   └── scout/
    │       ├── AGENTS.md    # TA scan, signal gen, market overview, sector, coin research
    │       └── SOUL.md      # Personality: data-first, precise, filter not generator
    └── skills/
        └── sniper/SKILL.md