Commit Graph

2 Commits

Author SHA1 Message Date
1bc3c99482 refactor: 简化服务架构 - 统一HTTP服务模式
- 新增 BaseApp 基类,统一 FastAPI 应用生命周期管理
- 移除 Gateway 服务,各服务直接对外提供 HTTP 接口
- 重命名 qmt_adapter 为 qmt_service
- 移除各服务独立的 health.py,统一由 BaseApp 提供
- 新增 scripts/init_db.py 数据库初始化脚本
- 新增 scripts/download_kline.py K线数据下载示例
- 删除 console 模块(暂不使用)
- 更新 .gitignore 忽略 caches/ 和 learning_materials/
2025-12-10 00:15:19 +08:00
085427959c feat: Phase 4-7 - Core Service, Strategy Engine, QMT Adapter, Tests
Phase 4: Core Service (port 8010)
- Pairing management (symbol-strategy pairs)
- Order service with Redis pub/sub
- Position and balance tracking

Phase 5: Strategy Engine (port 8030)
- BaseStrategy abstract class
- Strategy registry and executor
- Built-in strategies: Grid, MA Cross, Dual MA
- Signal manager with Redis integration

Phase 6: QMT Adapter (port 8040)
- XtQuant SDK wrapper with simulation mode
- Order executor listening to Redis channels
- Quote pusher and account syncer

Phase 7: Testing & Documentation
- Pytest fixtures for all services
- Unit tests for models and strategies
- Windows startup scripts
2025-12-09 00:36:27 +08:00