From 997dcae499dd9d1a550a9a5aa594a034a722c8e6 Mon Sep 17 00:00:00 2001 From: xxm Date: Fri, 28 Aug 2026 19:38:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rotation=E8=A1=A5=E4=B8=81try/except?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E6=8D=9F=E5=9D=8F(=E7=BC=BAexcept=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=BB=9F=E4=B8=80prompt=E5=92=8C=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E8=90=BD=E5=BA=93=E5=A4=B1=E8=B4=A5),?= =?UTF-8?q?=E5=B7=B2=E4=BF=AE=E5=A4=8D12=E7=BB=B4=E9=87=8D=E8=AF=84?= =?UTF-8?q?=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/batch_reassess.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/profile-scripts/batch_reassess.py b/deploy/profile-scripts/batch_reassess.py index 83f2a329..dee202e0 100644 --- a/deploy/profile-scripts/batch_reassess.py +++ b/deploy/profile-scripts/batch_reassess.py @@ -515,6 +515,8 @@ def build_prompt(data): f"\n请基于你对该股的12维分析结论,评估以上每只持仓的持有价值," f"推荐最应该卖出的一只(代码+理由+建议减持金额),在SIGNAL_JSON的rotation_candidate字段中明确输出。" f"判断标准:因子评分低、技术面最弱、信号最差、浮亏最大、仓位可腾出的优先卖出。") + except Exception: + _rotation_context = "" _position_context += _rotation_context # 2026-08-18 换仓决策注入(老莫:需要资金时对比预期收益,卖E_hold最低的) # 触发:本票信号为买入/加仓 + 现金不足(cash < 建议仓位金额估算)