diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c550d95..e4d8e7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,26 +20,14 @@ jobs: id: quant-platform-kit-ref run: | set -euo pipefail - ref="main" - for candidate in "${GITHUB_HEAD_REF:-}" "${GITHUB_BASE_REF:-}"; do - if [ -n "$candidate" ] && git ls-remote --exit-code --heads https://github.com/QuantStrategyLab/QuantPlatformKit.git "$candidate" >/dev/null 2>&1; then - ref="$candidate" - break - fi - done + ref="$(grep -Eo 'QuantPlatformKit\.git@[0-9a-f]+' pyproject.toml | head -n1 | sed 's/.*@//')" echo "ref=${ref}" >> "$GITHUB_OUTPUT" - name: Resolve CnEquityStrategies ref id: cn-equity-strategies-ref run: | set -euo pipefail - ref="main" - for candidate in "${GITHUB_HEAD_REF:-}" "${GITHUB_BASE_REF:-}"; do - if [ -n "$candidate" ] && git ls-remote --exit-code --heads https://github.com/QuantStrategyLab/CnEquityStrategies.git "$candidate" >/dev/null 2>&1; then - ref="$candidate" - break - fi - done + ref="$(grep -Eo 'CnEquityStrategies\.git@[0-9a-f]+' pyproject.toml | head -n1 | sed 's/.*@//')" echo "ref=${ref}" >> "$GITHUB_OUTPUT" - name: Resolve CnEquitySnapshotPipelines ref diff --git a/README.md b/README.md index 136048f..01d2cf5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ # QmtPlatform + +## QSL architecture role + +- **Layer**: `runtime-platform`. +- **Responsibility**: QMT / miniQMT A-share execution runtime. +- **Owns**: QMT runtime controls and A-share platform integration. +- **Consumes**: CnEquityStrategies, CnEquitySnapshotPipelines artifacts, QuantPlatformKit, QuantRuntimeSettings. +- **Must not**: own strategy research logic or publish snapshot artifacts. + A-share quant platform layer for **miniQMT / QMT**, built on `QuantPlatformKit` and `CnEquityStrategies`. Current scope is **dry-run first**: evaluate strategy targets and preview orders without submitting to the broker. diff --git a/README.zh-CN.md b/README.zh-CN.md index 0e4da5e..6d641e1 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,5 +1,14 @@ # QmtPlatform + +## QSL 架构角色 + +- **层级**:`执行平台`。 +- **职责**:QMT / miniQMT A 股执行运行时。 +- **事实源/归属**:QMT runtime 控制和 A 股平台集成。 +- **消费对象**:CnEquityStrategies、CnEquitySnapshotPipelines artifacts、QuantPlatformKit、QuantRuntimeSettings。 +- **禁止事项**:承载策略研究逻辑或发布 snapshot artifacts。 + A 股量化平台层,基于 `QuantPlatformKit` 和 `CnEquityStrategies` 构建,对接 **miniQMT / QMT**。 当前范围为**仅干跑**:评估策略目标并预览订单,不向券商提交实盘。