Skip to content

Commit 8a76122

Browse files
Pigbibicursoragent
andcommitted
Expose QMT in manual strategy switch and add dividend dry-run target.
Adds qmt to workflow platform choices, skips Cloud Run sync until QMT deploy workflow exists, and documents dividend-quality dry-run variables. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5f354d8 commit 8a76122

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/manual-strategy-switch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- ibkr
1313
- schwab
1414
- firstrade
15+
- qmt
1516
target_name:
1617
description: "Target name, e.g. sg, live, live-u1599-tqqq."
1718
required: true
@@ -351,6 +352,9 @@ jobs:
351352
schwab|firstrade)
352353
gh workflow run "${workflow}" --repo "${TARGET_REPOSITORY}" --ref main
353354
;;
355+
qmt)
356+
echo "QMT platform Cloud Run sync workflow is not configured yet; skipped."
357+
;;
354358
*)
355359
echo "No platform sync dispatch rule for ${PLATFORM}" >&2
356360
exit 2
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "../../../schemas/runtime-target.schema.json",
3+
"target_id": "qmt/dividend_quality_dry_run",
4+
"description": "Example QMT dry-run target for cn_dividend_quality_snapshot using local snapshot fixtures.",
5+
"github": {
6+
"repository": "QuantStrategyLab/QmtPlatform",
7+
"variable_scope": "repository"
8+
},
9+
"runtime_target": {
10+
"platform_id": "qmt",
11+
"strategy_profile": "cn_dividend_quality_snapshot",
12+
"dry_run_only": true,
13+
"deployment_selector": "qmt",
14+
"account_selector": ["qmt"],
15+
"account_scope": "CN",
16+
"service_name": "qmt-quant-service",
17+
"execution_mode": "dry_run",
18+
"scheduler": {
19+
"timezone": "Asia/Shanghai",
20+
"main_time": "45 15 1-7 * *",
21+
"probe_time": "35 9,15 1-7 * *",
22+
"precheck_time": "45 9 1-7 * *"
23+
}
24+
},
25+
"plugin_mounts_variable": "QMT_STRATEGY_PLUGIN_MOUNTS_JSON",
26+
"plugin_mounts": [],
27+
"extra_variables": {
28+
"QMT_DRY_RUN_ONLY": "true",
29+
"QMT_FEATURE_SNAPSHOT_PATH": "data/fixtures/dividend_quality/cn_dividend_quality_snapshot_factor_snapshot_latest.csv",
30+
"QMT_FEATURE_SNAPSHOT_MANIFEST_PATH": "data/fixtures/dividend_quality/cn_dividend_quality_snapshot_factor_snapshot_latest.csv.manifest.json"
31+
}
32+
}

0 commit comments

Comments
 (0)