Skip to content

feat: stock_info.name 使用真实股票名称(infoharbor_ex.code)#43

Merged
xbfighting merged 1 commit into
masterfrom
feat-issue-42-real-names
Jul 7, 2026
Merged

feat: stock_info.name 使用真实股票名称(infoharbor_ex.code)#43
xbfighting merged 1 commit into
masterfrom
feat-issue-42-real-names

Conversation

@xbfighting

Copy link
Copy Markdown
Owner

Summary

消掉"stock_info.name 是占位符"这条已知限制:真实名称来自通达信本地 infoharbor_ex.code(5,533 行全 A 股,含退市名,随盘后下载更新)。下游 ST/退市过滤可直接用库内名称。

Related Issue

Closes #42

What Changed

  • TdxDataReader._load_real_names() 解析 infoharbor_ex.code;get_stock_list 优先真名、缺失回退占位符并 WARNING
  • code 带前缀口径不变
  • 测试 +2;README/AGENTS.md/skill 同步

How to Test

pytest(65 passed);实机 tdx2db stock-list --db-onlySELECT code, name FROM stock_info LIMIT 5 应为真实名称

Risks / Tradeoffs

  • 名称快照语义(stock-list 全量重写 stock_info),ST 摘帽/戴帽随盘后文件更新

🤖 Generated with Claude Code

- get_stock_list 优先读 T0002/hq_cache/infoharbor_ex.code(GBK,
  6位code|股票名|关联人,全A股含退市名),缺失回退占位符 + WARNING
- code 保持带前缀口径不变,仅 name 换真值
- 测试 +2(真名映射 / 缺文件回退);README/AGENTS/skill 已知限制更新

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@xbfighting
xbfighting merged commit b68f447 into master Jul 7, 2026
5 checks passed
@xbfighting
xbfighting deleted the feat-issue-42-real-names branch July 7, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stock_info.name 使用真实股票名称(infoharbor_ex.code)

1 participant