QTrade/configs/production.yaml
cuizhan 1c35db7752 feat: 实现DataProvider数据访问层,优化DatabaseManager连接池
- 创建DataProvider静态类,提供统一的数据查询接口
- 支持批量查询多股票,返回Dict[str, DataFrame]格式
- 实现ensure_klines智能数据检查和save_klines批量保存
- 优化DatabaseManager使用连接池(pool_size=5, pool_pre_ping=True)
- 将数据下载器移至data_downloader子文件夹
- 添加数据库连接设计文档
- 创建测试用例验证功能完整性
2025-12-16 17:01:04 +08:00

39 lines
850 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# QTrade 实盘环境配置
# 数据库: qtrade_live
# 端口: 8010
# 说明: 公用配置在 global.yaml 中定义,此文件只包含实盘环境特有配置
# 环境配置
environment:
mode: "live" # 环境模式
db_name: "qtrade_live"
# 应用配置(特有)
app:
name: "QTrade-Live"
env: "production"
debug: false
# 数据库配置(特有)
database:
database: "qtrade_live"
# 日志配置(特有)
logging:
level: "INFO"
file:
path: "logs/production"
backup_count: 10 # 实盘保留更多日志
# 服务端口配置(特有)
services:
trading_service:
port: 8010
# QMT配置(特有)
qmt:
account_id: "" # 需要填写实际账号
session_id: 123456 # 会话ID
callback_url: "http://127.0.0.1:8010/api/v1/market/tick"
trade_callback_url: "http://127.0.0.1:8010/api/v1/trade/fill"