feat: 形态选股 + 板块热力图#13
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add HeatmapService to aggregate stock data by industry sector - Reads from data/data.parquet and filters suspended stocks (close == 0) - Returns market-cap weighted average pct_chg per sector - Provides individual stock details with all required fields - Includes comprehensive test suite (8 tests, all passing) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Create app/routes/heatmap.py blueprint with index route - Register heatmap_routes in app/__init__.py - Add nav link in base.html between 选股筛选 and 多因子模型 - Route renders heatmap.html with sectors, stocks, and trade_date - Includes error handling for missing data Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add pattern_screen_api blueprint with /api/pattern-screen/groups and /api/pattern-screen/screen endpoints - Groups endpoint returns pattern metadata with hit counts - Screen endpoint filters stocks by selected patterns with sorting/pagination - Register blueprint in app/__init__.py Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Created page route in app/routes/pattern_screen.py - Registered pattern_screen_bp blueprint in app/__init__.py - Added navigation link in app/templates/base.html - Created complete template with left filter panel and right result table - Template includes search, accordion groups, pagination, and sorting Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1. run.py: revert debug=True on 0.0.0.0, use debug=False 2. pattern_screen: fix stale updateSelectedCount() in resetFilters 3. heatmap: sync activeIndustry closure on close button click 4. include test files (force-added, gitignored by tests/)
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.
新增功能
形态选股
PatternScreenService:读取 data/data.parquet,支持 7 组 131 个形态字段的纯 AND 筛选/api/pattern-screen/groups+/api/pattern-screen/screen/pattern-screen/,左侧分组筛选面板 + 右侧结果表格板块热力图
HeatmapService:按行业聚合数据/heatmap/,ECharts treemap + 个股表格测试