feat: stock_info.name 使用真实股票名称(infoharbor_ex.code)#43
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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优先真名、缺失回退占位符并 WARNINGHow to Test
pytest(65 passed);实机tdx2db stock-list --db-only后SELECT code, name FROM stock_info LIMIT 5应为真实名称Risks / Tradeoffs
🤖 Generated with Claude Code