Repository navigation
fix(trade fit + harvest): held names vs their sector ETF, every benchmark harvested, a store behind the market says so - #516
Merged
Conversation
…F, every sector benchmark harvested, a store behind the market says so Agent feedback 29 Nov: - "it compares CRDO against SPY instead of the chip ETF": 14 held/watched names had no entry in the one symbol→sector-ETF map and fell back to SPY (CRDO MRVL SKHY SNDK STX WDC → SOXX; DELL SMCI ANET CRWV APLD → XLK; ORCL MDB → IGV; HOOD → XLF). Frontend copy re-synced (drift test). - "it says the last session was 23 November, when it was 27 November": the intraday read called the 5-minute store's last day the last session. It now compares with the exchange calendar and says "5-minute bars stop at … — the last session was …; the 5-minute store is behind". - IGV (software benchmark and a segment hedge) was never harvested: every sector ETF in the map plus the market proxies (SPY QQQ IWM SMH SOXX IGV) are now harvested whatever their flag (scope 207 → 211). Co-Authored-By: Claude Opus 5.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.
Fixes the two agent findings from 29 Nov, plus one gap found while fixing them.
"Compares CRDO against SPY instead of the chip ETF": 14 held or watched names had no entry in the symbol → sector-ETF map, so they fell back to SPY. Now mapped:
The frontend copy is re-synced, and the drift test passes.
"Says the last session was 23 Nov, when it was 27 Nov": the intraday read called the 5-minute store's last day "the last session". It now compares against the exchange calendar and says "5-minute bars stop at 23 Nov — the last session was 27 Nov; the 5-minute store is behind".
IGV was never harvested, although it is the software benchmark and a segment hedge. Every sector ETF in the map, plus SPY, QQQ, IWM, SMH, SOXX and IGV, is now harvested whatever its flag. The scope goes from 207 to 211 symbols, with no single stocks added.
Verified: Python 2297 passed / 2 skipped.
🤖 Generated with Claude Code