From 4c949f7737a60a16b6c3b74fc2aaf716d2e6de1f Mon Sep 17 00:00:00 2001 From: hmo Date: Tue, 11 Aug 2026 08:51:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20predictive=5Foversold=5Fscanner=20?= =?UTF-8?q?=E5=A4=A7=E7=9B=98=E6=8C=87=E6=95=B0=E4=BB=A3=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E2=80=94=E2=80=94=E7=94=A8000001(=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8A=A0sh=E5=89=8D=E7=BC=80),=E4=B8=8D=E8=83=BD=E7=94=A8sh000?= =?UTF-8?q?001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/predictive_oversold_scanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/predictive_oversold_scanner.py b/deploy/profile-scripts/predictive_oversold_scanner.py index dab2f99a..49da2954 100644 --- a/deploy/profile-scripts/predictive_oversold_scanner.py +++ b/deploy/profile-scripts/predictive_oversold_scanner.py @@ -97,7 +97,8 @@ def load_market_state(): def compute_market_filters(): """计算大盘门控:mkt_rsi / mkt_dd60(用上证指数K线)""" - klines = fetch_tx_klines("sh000001", datalen=80) + # 000001 = 上证指数(fetch_tx_klines 自动加 sh 前缀;不能用带前缀的 sh000001) + klines = fetch_tx_klines("000001", datalen=80) if not klines or len(klines) < 70: return None closes = [k["close"] for k in klines]