From f5ac339bb49ebfb6373d5d9cc42d5f68446d5c09 Mon Sep 17 00:00:00 2001 From: hmo Date: Fri, 14 Aug 2026 22:57:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20hk=5Fscanner=E4=BF=AEbars=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E2=80=94=E2=80=94fetch=5Ftx=5Fklines=E8=BF=94?= =?UTF-8?q?=E5=9B=9Edict=E5=88=97=E8=A1=A8,=E7=94=A8b[close]/b.get(volume)?= =?UTF-8?q?=E8=80=8C=E9=9D=9E=E4=B8=8B=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/hk_scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/hk_scanner.py b/deploy/profile-scripts/hk_scanner.py index 3abb081e..1177679c 100644 --- a/deploy/profile-scripts/hk_scanner.py +++ b/deploy/profile-scripts/hk_scanner.py @@ -59,8 +59,8 @@ def check_hk_mr1(code): bars = fetch_tx_klines(code, datalen=120) if not bars or len(bars) < 65: return None - closes = [b[2] for b in bars] # close 在第3列(date,open,close,...) - vols = [b[5] if len(b) > 5 else 0 for b in bars] + closes = [b["close"] for b in bars] # fetch_tx_klines 返回 dict 列表 + vols = [b.get("volume", 0) for b in bars] c = closes[-1] ma60 = sum(closes[-60:]) / 60 if not c or ma60 <= 0: