Skip to content

Follow-up to #1932: restore NYSE class shares, drop ETFs, check whole stock lists - #1944

Merged
asolntsev merged 1 commit into
mainfrom
fix/stock-symbols-followup
Oct 25, 2026
Merged

asolntsev merged 1 commit into
mainfrom
fix/stock-symbols-followup

Conversation

@asolntsev

Copy link
Copy Markdown
Collaborator

Follow-up to #1932. It applies the review comments left on that PR.

Data (stock.yml)

  • NYSE class shares restored. 22 tickers from the original list are still common stock on NYSE according to NASDAQ Trader otherlisted.txt (Exchange=N, ETF=N, snapshot 2026-10-23): AGM.A AKO.A AKO.B BF.A BF.B BIO.B BRK.A BRK.B CIG.C CRD.A CRD.B GEF.B GTN.A HEI.A HVT.A LEN.B MKC.V MOG.A MOG.B PBR.A TAP.A WSO.B. Each one is placed back at its original position.
  • ETFs removed from symbol_nyse: HF, TPZ.
  • Padding fixed in symbol_nsdq: BLIN, ENZY, IMNP, TORM had trailing spaces (the same bug as Does "symbol_nyse" in stock.yml contain valid values? #1928).

symbol_nyse now has 1429 entries.

Tests

  • AbstractProviderListTest.testProviderList now checks every list entry against the TestSpec regex, not only the sampled value. This applies to all providers that pass a regex; the full suite passes.
  • StockTest: each symbol_* list and exchanges gets a strict regex in providerListTest(). NYSE uses [A-Z]{1,4}(\.[A-Z])?, which accepts BRK.B and still rejects ^, /, $ and .WS. A parameterized no-duplicates check was added, and the redundant @RepeatedTest methods were removed.

Docs

  • Javadoc on Stock.nyseSymbol() names the data source and snapshot date. Spotless strips comments from YAML, so the note can't live in stock.yml.
  • Release note in docs/releases/3.0.0-SNAPSHOT.md about the smaller NYSE list, which changes seeded output and makes unique() run out sooner.

🤖 Generated with Claude Code

… stock lists

* restore 22 NYSE class shares still listed as common stock (BRK.A, BRK.B, BF.A, BF.B, ...)
* remove ETFs HF and TPZ from symbol_nyse
* trim padded entries in symbol_nsdq (BLIN, ENZY, IMNP, TORM)
* AbstractProviderListTest: validate every list entry against the TestSpec regex
* StockTest: per-list regexes in providerListTest(), no-duplicates check, drop redundant repeated tests
* document data source of nyseSymbol() and add a release note

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@what-the-diff

what-the-diff Bot commented Oct 25, 2026

Copy link
Copy Markdown

PR Summary

  • Updated NYSE stock data to reflect currently listed common stocks. The list now includes valid class-share symbols and removes obsolete entries, improving the accuracy of seeded and unique stock outputs.
  • Documented the NYSE symbol list’s source and snapshot date. This gives users helpful context about where the data comes from and how current it is.
  • Strengthened stock-list validation. Tests now check that symbols follow the expected formats and that lists do not contain duplicates, helping prevent invalid or repeated data from being introduced.

@asolntsev asolntsev linked an issue Oct 25, 2026 that may be closed by this pull request
@asolntsev asolntsev added this to the 3.0.0 milestone Oct 25, 2026
@asolntsev asolntsev self-assigned this Oct 25, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.42%. Comparing base (a941a52) to head (0e50e34).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1944      +/-   ##
============================================
+ Coverage     92.41%   92.42%   +0.01%     
  Complexity     3570     3570              
============================================
  Files           348      348              
  Lines          7065     7065              
  Branches        691      691              
============================================
+ Hits           6529     6530       +1     
+ Misses          371      370       -1     
  Partials        165      165              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asolntsev
asolntsev merged commit 3dc14bb into main Oct 25, 2026
17 checks passed
@asolntsev
asolntsev deleted the fix/stock-symbols-followup branch October 25, 2026 07:38
@kingthorin

Copy link
Copy Markdown
Collaborator

Thanks, nice work!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does "symbol_nyse" in stock.yml contain valid values?

3 participants