Companies whose only ticker is a preferred or note get past the sector exclusion #45

Closed
opened 2026-11-06 05:26:55 +00:00 by chris-kreidl · 2 comments
chris-kreidl commented 2026-11-06 05:26:55 +00:00 (Migrated from github.com)

🤖 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.json lists that as their only ticker, so primaryTickers maps the company to it. Yahoo returns a price for the preferred/note but no sector. isEligible doesn'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):

  • WELPP: Wisconsin Electric Power Co, a utility (WEC Energy subsidiary). Should be excluded as a utility.
  • SWKHL: SWK Holdings. Looks like a note rather than common stock.

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:** 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.json` lists that as their only ticker, so `primaryTickers` maps the company to it. Yahoo returns a price for the preferred/note but no sector. `isEligible` doesn'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): - **WELPP**: Wisconsin Electric Power Co, a utility (WEC Energy subsidiary). Should be excluded as a utility. - **SWKHL**: SWK Holdings. Looks like a note rather than common stock. **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).
chris-kreidl commented 2026-11-06 06:05:19 +00:00 (Migrated from github.com)

🤖 Claude: Investigated before starting. Questions for Chris at the bottom.

What's ranked with a blank sector (current CSV, 7 companies):

Ticker Company Why sector is blank SEC SIC
WELPP Wisconsin Electric Power only listed security is an OTC preferred 4911 Electric Services
SWKHL SWK Holdings only listed security is a Nasdaq note 6159 Business Credit
FISV Fiserv real common stock; Yahoo has no profile —
LION Lionsgate Studios real common stock; Yahoo has no profile —
NIQ NIQ Global Intelligence real common stock (2025 IPO); Yahoo has no profile —
CELG-RI Bristol-Myers Squibb stale ticker from before #39, see #44 —
SREA Sempra stale ticker from before #39, see #44 —

The last two go away with a fresh bun run enrich (tracked in #44). The real problem is the first five.

Options

  1. Exclude any company with an unknown sector. Simplest, but it also drops real common stocks like Fiserv, Lionsgate and NIQ.
  2. When Yahoo has no sector, use the SEC SIC code (from 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)
  3. Detect "not common stock" and exclude. There's no reliable signal: SEC's ticker list and Yahoo both report preferreds and notes as ordinary listings. It would need ticker-suffix guessing.

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

  1. Which option?
  2. If option 2: which SIC codes count as Financial Services and Utilities? A starting point to change as you see fit:
    • Financial: 6000–6499 (banks, credit, brokers, insurance) and 6700–6799 (holding and investment offices), but not 6500–6599 real estate, since Yahoo's "Real Estate" isn't excluded today.
    • Utilities: 4900–4949 and 4960–4999 (electric, gas, water, steam), but not 4950–4959 (waste management, which Yahoo puts in Industrials).
  3. If neither Yahoo nor SIC gives a sector: exclude, or rank?
🤖 **Claude:** Investigated before starting. Questions for Chris at the bottom. **What's ranked with a blank sector** (current CSV, 7 companies): | Ticker | Company | Why sector is blank | SEC SIC | |---|---|---|---| | WELPP | Wisconsin Electric Power | only listed security is an OTC preferred | 4911 Electric Services | | SWKHL | SWK Holdings | only listed security is a Nasdaq note | 6159 Business Credit | | FISV | Fiserv | real common stock; Yahoo has no profile | — | | LION | Lionsgate Studios | real common stock; Yahoo has no profile | — | | NIQ | NIQ Global Intelligence | real common stock (2025 IPO); Yahoo has no profile | — | | CELG-RI | Bristol-Myers Squibb | stale ticker from before #39, see #44 | — | | SREA | Sempra | stale ticker from before #39, see #44 | — | The last two go away with a fresh `bun run enrich` (tracked in #44). The real problem is the first five. **Options** 1. **Exclude any company with an unknown sector.** Simplest, but it also drops real common stocks like Fiserv, Lionsgate and NIQ. 2. **When Yahoo has no sector, use the SEC SIC code** (from `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) 3. **Detect "not common stock" and exclude.** There's no reliable signal: SEC's ticker list and Yahoo both report preferreds and notes as ordinary listings. It would need ticker-suffix guessing. **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** 1. Which option? 2. If option 2: which SIC codes count as Financial Services and Utilities? A starting point to change as you see fit: - Financial: 6000–6499 (banks, credit, brokers, insurance) and 6700–6799 (holding and investment offices), but not 6500–6599 real estate, since Yahoo's "Real Estate" isn't excluded today. - Utilities: 4900–4949 and 4960–4999 (electric, gas, water, steam), but not 4950–4959 (waste management, which Yahoo puts in Industrials). 3. If neither Yahoo nor SIC gives a sector: exclude, or rank?
chris-kreidl commented 2026-11-11 15:51:45 +00:00 (Migrated from github.com)

I'm fine with option 2, and your recommendations on SIC codes are fine. I don't have full knowledge of the SIC ranges.

I'm fine with option 2, and your recommendations on SIC codes are fine. I don't have full knowledge of the SIC ranges.
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#45
No description provided.