fix: 日线同步改为逐股票精确增量#10
Merged
Merged
Conversation
sync 用全表 MAX(date) 做统一起点,库里没有的新股票全历史被 filter_data 过滤为空,静默 0 行入库(20260612 科创/301 首次 同步踩坑:分钟线 54 只已入库而日线 0 行才暴露)。 - get_latest_datetime_by_code 加 date_column 参数(白名单校验) - sync_all_daily_data 逐股票查 MAX(date),新股 latest=None 走全历史 - sync 编排去掉全局 start_date 推导 Dry-run 验证:sh688981 (None->1426行) / sh600519 (06-13->0行) / sz301236 (None->1029行) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jun 12, 2026
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
sync日线用全表 MAX(date) 做统一增量起点,库里没有的新股票全历史被 filter 过滤为空,静默 0 行入库。本次 fix: 股票列表纳入科创板 688 与创业板 301 段 #9 合入后首次同步科创/301 时暴露:分钟线(已是逐股票精确增量)54 只入库,日线 0 行get_latest_datetime_by_code增加date_column参数('datetime'/'date' 白名单),日线复用该方法逐股票查增量起点Test plan
🤖 Generated with Claude Code