Should SIC-only companies get a Yahoo sector name? #61

Open
opened 2026-11-13 15:45:45 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-13 15:45:45 +00:00 (Migrated from github.com)

🤖 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:

  • Services-Business Services, NEC
  • Services-Computer Programming, Data Processing, Etc.
  • Services-Motion Picture & Video Tape Production
  • Transportation Services

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.

🤖 **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: - Services-Business Services, NEC - Services-Computer Programming, Data Processing, Etc. - Services-Motion Picture & Video Tape Production - Transportation Services 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.
chris-kreidl commented 2026-11-13 16:45:11 +00:00 (Migrated from github.com)

seems like mapping them would require periodic maintenance of the mapping table. is there a way to automate this?

seems like mapping them would require periodic maintenance of the mapping table. is there a way to automate this?
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener#61
No description provided.