From 896d0bb002a0f1e5bde1e30ef10ee73f175009ca Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 24 Aug 2026 14:34:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20check=5Fcodes=E6=8B=89=E4=BB=B7=E9=9B=86?= =?UTF-8?q?=E5=90=88=E5=85=9C=E5=BA=95=E2=80=94=E2=80=94trig=E7=A9=BA?= =?UTF-8?q?=E4=BD=86=E4=B8=BB=E5=B1=82=E6=9C=89=E6=AD=A2=E6=8D=9F/?= =?UTF-8?q?=E5=8C=BA=E9=97=B4/=E6=AD=A2=E7=9B=88=E7=9A=84=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=B9=9F=E7=BA=B3=E5=85=A5(603920=E7=9B=B2=E5=8C=BA?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=8E=AF:zones=E5=85=9C=E5=BA=95=E4=BF=AE?= =?UTF-8?q?=E4=BA=86=E4=BD=86=E4=BB=B7=E6=A0=BC=E6=A0=B9=E6=9C=AC=E6=B2=A1?= =?UTF-8?q?=E6=8B=89,price=5Finfo=3DNone=E4=BB=8D=E8=B7=B3=E8=BF=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/price_monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/price_monitor.py b/deploy/profile-scripts/price_monitor.py index 3e019e4d..1916ecd6 100644 --- a/deploy/profile-scripts/price_monitor.py +++ b/deploy/profile-scripts/price_monitor.py @@ -681,7 +681,9 @@ def run_once(round_label=""): check_codes = set() for d in active: trig = d.get("trigger", {}) - if trig: + # 2026-08-24 兜底:trig 空但主层有止损/区间/止盈的版本化策略也纳入 + # (否则 prices 里没它们,zones 循环 price_info=None 直接 continue——603920 盲区第二环) + if trig or d.get("stop_loss") or (d.get("entry_low") and d.get("entry_high")) or d.get("take_profit"): check_codes.add(d["code"]) # 批量拉取这些股票的价格