[错误] get_northbound_flow 静默地返回一个空信封: Eastmoney 从 2024-08-30 起的北向网络数据源已停止,负载形状发生偏移,而 tushare 备份的 ×100 误标记交易被误认为是网络流量
What happened:
get_northbound_flow silently returns a useless envelope — ok: true, source: "eastmoney" with realtime all null and history: [] — on every call, and never falls through to the tushare fallback. Live run against current main (d3c29488):
{"ok": true, "market": "China A", "source": "eastmoney",
"data": {"unit": "10k CNY", "lookback_days": 5,
"realtime": {"shanghai_connect": null, "shenzhen_connect": null, "total": null},
"history": []}}There are three stacked root causes, each verified against live endpoints on 2026-09-18:
1. The Eastmoney kamt northbound net-flow feed is dead (since 2024-08-30).
HKEX stopped publishing northbound daily net buy in late Aug 2024. The push2his kamt.kline series confirms it: the last non-zero net-inflow point is 2024-08-29, and every trading day from 2024-08-30 onward is 0.00 with a frozen cumulative (273757367.45, identical for 2 years). The realtime kamt/get payload carries dayNetAmtIn: 0.0 for both hk2sh/hk2sz.
2. The Eastmoney payload shape drifted, so the parser reads keys that no longer exist.
_parse_realtime reads data.hk2sh.netBuyAmt, but the live payload nests dayNetAmtIn; _parse_history reads data.klines, but the live payload returns per-channel arrays under data.hk2sh / data.hk2sz. Result: even the (dead) zeros never reach the envelope — history parses to []. Because the HTTP calls succeed, the except-based tushare fallback never triggers: the tool reports ok: true on a structurally empty payload.
内容来源: HKUDS/Vibe-Trading