fix(intraday): 板块成分股并发+领涨股兜底 - #3
Open
shao60533 wants to merge 3 commits into
Open
Conversation
- khunter_x/recap.py: 读取最新rankings+腾讯取价+Pillow渲染长图(今日明细+累计追踪+按策略校准) - mcp_launcher.py: 飞书图片上传/发送 helper + 工作日盘后(默认北京15:35)复盘定时器 - Dockerfile: 加 fonts-noto-cjk + Pillow 供服务端无浏览器出图 - DAILY_RECAP_RUN_ON_BOOT 支持启动即推一次(便于验证) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- 主段从「个股选股表」换成「异动板块 Top N + 板块内异动个股」(主力资金/涨幅领先) - eastmoney.fetch_board_members: 抓板块成分股(BKxxxx),按主力净流入降序,近似判定涨停 - service.build_snapshot: 新增 sector_movers(板块内异动个股,KH分串联);picks仍保留供docx - 涨停池降级为「涨停温度计」context,不再当主角 - push2成分股不可用的板块优雅降级(只显板块);快照超时30→45s Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- _build_sector_movers 改 async 并发(asyncio.to_thread+gather),总耗时≈最慢单板块 - 成分股重试 2→4(轮换更多 push2 镜像),降低偶发 502 概率 - 成分股全失败时用板块榜单自带领涨股兜底,不再显示「板块内个股数据暂不可用」 - _mover_line: 领涨兜底(主力资金未知)时隐藏主力字段,标注「领涨」 Co-Authored-By: Claude Opus 4.8 <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.
消除盘中卡片「板块内个股数据暂不可用」:成分股改并发抓取+提高重试,失败时用领涨股兜底。
🤖 Generated with Claude Code