QTrade/configs/production.yaml
cuizhan 5734bf1fd0 feat: 实现XtQuant数据下载器和核心对象系统
- 新增核心对象模型(Tick, Kline, Order, Trade, Position, Account, Signal, Symbol)
- 使用Pydantic BaseModel实现自动验证
- 创建DatabaseManager管理数据库和表结构
- 实现BaseDataDownloader抽象基类
- 实现XtQuantDownloader下载历史K线数据
- 添加Config和Logger工具类
- 清理旧的微服务架构代码
- 更新配置文件为简化版本(去除Redis)
- 所有测试通过
2025-12-15 20:00:47 +08:00

79 lines
1.5 KiB
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
# 环境配置
environment:
mode: "live" # 环境模式
db_name: "qtrade_live"
# 应用配置
app:
name: "QTrade-Live"
version: "2.0.0"
env: "production"
debug: false
# MySQL 配置
database:
host: "127.0.0.1"
port: 3306
user: "root"
password: "1234"
database: "qtrade_live"
pool_size: 5
pool_recycle: 3600
echo: false
# 日志配置
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
file:
enabled: true
path: "logs/production"
max_size: 10485760
backup_count: 10
# 行情配置
market:
kline_periods:
- "1m"
- "5m"
- "15m"
- "30m"
- "60m"
- "1d"
- "1w"
cache_ttl: 60
# 交易配置
trading:
sessions:
morning:
start: "09:30"
end: "11:30"
afternoon:
start: "13:00"
end: "15:00"
# 服务端口配置
services:
trading_service:
host: "0.0.0.0"
port: 8010
# QMT配置(实盘交易接口)
qmt:
# XtQuant路径
xtquant_path: "C:\\Program Files\\国金证券QMT交易端\\userdata_mini\\datadir"
# 账号配置
account_id: "" # 需要填写实际账号
account_type: "STOCK" # STOCK-股票账户, CREDIT-信用账户
# 连接配置
session_id: 123456 # 会话ID
# 数据推送地址(QMT推送数据到这里)
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"