refactor QMT client and optimize API

This commit is contained in:
2026-08-28 22:46:04 +08:00
parent d09f271569
commit 29fee85b3d
18 changed files with 1239 additions and 519 deletions

View File

@@ -7,7 +7,7 @@ from pathlib import Path
import yaml
@dataclass
@dataclass(slots=True)
class SignalConfig:
"""单个交易信号的数据源及开仓限制配置。"""
@@ -21,7 +21,7 @@ class SignalConfig:
gt_last_price_is_open: bool = False
@dataclass
@dataclass(slots=True)
class GlobalConfig:
"""所有主机共享的系统配置。"""
@@ -37,7 +37,7 @@ class GlobalConfig:
signals: dict[str, SignalConfig] = field(default_factory=dict)
@dataclass
@dataclass(slots=True)
class AccountConfig:
"""当前主机所使用的账户及交易策略参数。"""