Skip to content

v2.13.7 · wire new sources

Choose a tag to compare

@wbh604 wbh604 released this 19 Apr 16:01
· 166 commits to main since this release
65e33f7

v2.13.7 — wire new sources · 16 registered but unused 源接入 fetcher

背景

v2.13.4 / v2.13.6 共加了 16 个源到 data_source_registry,但只是 registry 层面的声明——实际 fetcher 并没调用它们。v2.13.7 把这些源真正接入到对应 fetcher 里。

核心改动

  • 新建 lib/news_providers.py(160 行)· 4 新闻源统一聚合 · 10 min cache
  • fetch_events.py (15_events · A 股) 接入 get_news_multi_source
  • fetch_sentiment.py (17_sentiment) 接入 news_providers · heat 增强
  • fetch_policy.py (13_policy) 加 cfachina · 期货/商品 industry 专用
  • lib/data_sources.py 加 _yahoo_v8_chart() · US/HK K 线都接入 · 429 retry

实测

  • news_providers: sources_ok 4/4 · total_hits 31
  • _yahoo_v8_chart("AAPL"/"0700.HK", "1mo") 均返 22/21 rows
  • pytest 217 passed(baseline 205 + 12 新)

影响面

  • A 股 15_events 数据密度 3-5 条 → 10-30 条
  • 17_sentiment heat 融合新闻正负词二次分析
  • 美股/港股 K 线 yfinance cookie 失败时有 HTTP 兜底
  • 期货/商品类 13_policy 接入期货业协会权威源

防回归

新增 tests/test_v2_13_7_wire_new_sources.py · 12 个回归
BUGS-LOG v2.13.7 条目含"每次加 registry 源必须同步改 fetcher" 规则

Full changelog: v2.13.6...v2.13.7