Companies whose only ticker is a preferred or note get past the sector exclusion #45
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#45
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 measuring the fallback rate for #40.
Some filers have no listed common stock, only a preferred stock or a note, and SEC's
company_tickers.jsonlists that as their only ticker, soprimaryTickersmaps the company to it. Yahoo returns a price for the preferred/note but no sector.isEligibledoesn't exclude an unknown sector, so the company gets past the Financial Services / Utilities exclusion and can be ranked.Examples after the 2026-11-06 enrichment (both rankable: priced, ≥ $50M, sector null):
Impact: wrong companies in the ranking. The price and market cap are for a preferred/note, not the company's equity, so EY is meaningless too.
Expected (product decision for Chris): how to treat a company whose only ticker isn't common stock: exclude it, or something else? A related question is whether an unknown sector should still pass the sector exclusion (the SEC SIC code is another source for sector).
🤖 Claude: Investigated before starting. Questions for Chris at the bottom.
What's ranked with a blank sector (current CSV, 7 companies):
The last two go away with a fresh
bun run enrich(tracked in #44). The real problem is the first five.Options
data.sec.gov/submissions, ~1 extra request per priced company). WELPP and SWKHL would be excluded; FISV/LION/NIQ stay ranked. Still unranked if neither source has a sector? (my suggestion: yes, exclude)My recommendation: option 2. It fixes both examples and doesn't drop real companies. A company whose only ticker is a preferred but isn't a financial or utility (none in today's data) would still be ranked with the wrong market cap. I'd leave that for a separate issue if it ever shows up.
Questions
I'm fine with option 2, and your recommendations on SIC codes are fine. I don't have full knowledge of the SIC ranges.