Should SIC-only companies get a Yahoo sector name? #61
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: Found while building #16's sector filter.
When Yahoo has no sector for a company, enrich uses SEC's SIC code (#45,
src/sic.ts). Only the excluded sectors (Financial Services, Utilities) are mapped to Yahoo's names. Every other SIC code keeps SEC's description, so on real data the sector filter shows chips such as:There's one company in each. Filtering on "Technology" leaves out the company under "Services-Computer Programming…", so it isn't re-ranked with its peers.
Question for Chris: should every SIC code map to one of Yahoo's 11 sectors (e.g. 7370–7379 → Technology), or should SIC-sourced sectors stay as SEC's description? Mapping them would be a small table in
src/sic.ts, plus refreshing the 4 cached rows.seems like mapping them would require periodic maintenance of the mapping table. is there a way to automate this?