mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-07 13:00:59 +08:00
Exchange Factory: - CreateTrader() supports Binance/OKX/Bybit/Bitget/KuCoin/Gate - Auto-registers traders from config on startup - Direct import of nofx/trader packages (merged into main module) Web UI: - Dark theme chat interface at :8900 - Quick action sidebar (analyze, watch, positions, balance) - Real-time health check indicator - Mobile responsive Strategy Runner: - /strategy start BTC 1h - AI auto-analyzes on interval - /strategy stop <id> - stop strategy - /strategy list - view active strategies - Notifications pushed to Telegram on signals - Configurable intervals: 15m/30m/1h/4h Docker: - Multi-stage Dockerfile (alpine, ~20MB) - docker-compose.yml with volume persistence Bug fixes: - Fixed panic on empty exchanges config - Fixed thinking mode response parsing (qwen3 content:null) - Added request timeout (55s) in Telegram handler - Better error logging
24 lines
472 B
YAML
24 lines
472 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
nofxi:
|
|
build:
|
|
context: ..
|
|
dockerfile: nofxi/Dockerfile
|
|
container_name: nofxi
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8900:8900"
|
|
volumes:
|
|
- ./config.yaml:/app/config.yaml:ro
|
|
- nofxi-data:/app/data
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
# Override config via env vars:
|
|
# - NOFXI_TELEGRAM_TOKEN=xxx
|
|
# - NOFXI_LLM_API_KEY=xxx
|
|
# - NOFXI_LLM_BASE_URL=xxx
|
|
|
|
volumes:
|
|
nofxi-data:
|