Commit Graph

5 Commits

Author SHA1 Message Date
ccdce260d2 feat: 配置系统智能类型转换 + 测试文件迁移到 tests/test_core/ 2025-12-11 09:01:39 +08:00
7e5e4d91fe feat: 重构配置系统,统一管理配置文件
- 创建 configs/global.yaml 存放全局公共配置
- 创建 configs/services/{service_name}.yaml 存放各服务独立配置
- 新增 ConfigManager 工具类,支持配置读取、保存和优先级合并
- 配置加载优先级:global.yaml < services/*.yaml < 环境变量
- 更新所有服务使用新配置系统
- 新增配置使用文档和测试脚本
- 移除旧的 Pydantic Settings 依赖,不保证兼容性
2025-12-11 08:53:58 +08:00
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
e3f34cd57c refactor: ORM模型重构 + 服务管理器 + QMT数据下载器
主要变更:
- 重构 models: 统一使用 SQLAlchemy ORM,分离 Pydantic schemas
- 新增 service_manager: 服务启动/停止统一管理
- 新增 data_downloader: 基于 xtquant 的数据下载服务
- 简化 main.py: 只启动必要服务 (Redis, Database)
- 更新 .gitignore: 排除 xtquant 数据目录
2025-12-09 17:32:01 +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