From e793150ab539097bbaa85a8e4fc1943c5c386ffb Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 01:29:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B8=AF=E8=82=A1=E6=8C=89=E6=B8=A9?= =?UTF-8?q?=E5=8C=BA=E6=BF=80=E6=B4=BB=E7=9F=A9=E9=98=B5(regime=5Factive)?= =?UTF-8?q?=E2=80=94=E2=80=94=E9=9D=9E=E5=BD=93=E5=89=8D=E6=B8=A9=E5=8C=BA?= =?UTF-8?q?=E8=B5=84=E6=A0=BC=E5=A4=9F=E4=B9=9F=E6=BF=80=E6=B4=BB/?= =?UTF-8?q?=E5=A4=87=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/strategy_router.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/strategy_router.py b/deploy/profile-scripts/strategy_router.py index c0972ee3..082fdf14 100644 --- a/deploy/profile-scripts/strategy_router.py +++ b/deploy/profile-scripts/strategy_router.py @@ -301,12 +301,18 @@ def main(): hk_regime = load_regime('hk') hk_temp = load_temp('hk') from hk_strategies import strategies_for_regime - hk_active = strategies_for_regime(hk_regime.get("regime", "unknown")) + hk_cur_rg = hk_regime.get("regime", "unknown") + hk_active = strategies_for_regime(hk_cur_rg) + # 2026-08-18 港股按温区激活矩阵(老莫:非当前温区资格够也激活/备好) + hk_regime_active = {} + for _r in ("trend_down", "choppy", "trend_up"): + hk_regime_active[_r] = strategies_for_regime(_r) out["markets"] = {"hk": { - "state": hk_regime.get("regime", "unknown"), + "state": hk_cur_rg, "state_date": hk_regime.get("date", ""), "temp_band": hk_temp.get("band", "unknown"), "active": hk_active, + "regime_active": hk_regime_active, }} except Exception as e: print(f"港股路由失败(不影响A股): {e}", flush=True)