From 6b3d86920baf556c3442d30dc08df87be1e8181d Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sat, 1 Aug 2026 08:00:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(idx-eod):=20000300=20=E6=B2=AA=E6=B7=B1300?= =?UTF-8?q?=20=E5=8A=A0=E5=85=A5=20CODES=EF=BC=8C=E8=A1=A5=207-16=E2=86=92?= =?UTF-8?q?7-31=20=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:000300 不在 sina_index_eod.py CODES(15个中证指数码),无每日更新 机制,停在历史灌入的 7-16。其他14码由 idx-eod 每日更新到 7-31。 修复:CODES 加 000300(sina 主源良好,无股票码碰撞)。实证 ssh VPS 跑 --codes 000300 补22行(7-17~7-31新增11行),dbbardata 000300 SSE max=7-31 rows=4025(was 7-16/4014)。明天 idx-eod 18:30 起每日自动更新。 --- scripts/data_platform/sina_index_eod.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/data_platform/sina_index_eod.py b/scripts/data_platform/sina_index_eod.py index c0c2d76..8790e1c 100644 --- a/scripts/data_platform/sina_index_eod.py +++ b/scripts/data_platform/sina_index_eod.py @@ -55,9 +55,12 @@ from dbbardata_utils import normalize_daily_dt # noqa: E402 DB = r"C:\sanguo_vnpy_v2\data\quant_trading.db" T0 = time.time() -# 15 个中证指数 (与 SZSE 股票码碰撞, 仅灌 SSE 点位行) -# 000938 = 中证 1000 等权 (策略需求: RPS/动量基准对比, 加 2026-07-28) +# 16 个指数点位 -> dbbardata('d', SSE)。 +# 000928~000938/000852/000905/000016/000985 与 SZSE 股票码碰撞 (仅灌 SSE 点位行隔开股票行); +# 000300 沪深300 无碰撞, 但缺每日更新机制曾停 7-16 (2026-08-01 加)。 +# 000938 = 中证1000等权 (策略需求: RPS/动量基准对比, 加 2026-07-28) CODES = [ + "000300", "000928", "000929", "000930", "000931", "000932", "000933", "000934", "000935", "000936", "000937", "000938", "000852", "000905", "000016", "000985",