Skip to content

fix(nport): tickers for renamed issuers and u.s.-listed foreign issuers - #92

Merged
daggerok merged 1 commit into
mainfrom
fix/q33-renamed-and-us-listed-tickers
Oct 26, 2026
Merged

daggerok merged 1 commit into
mainfrom
fix/q33-renamed-and-us-listed-tickers

Conversation

@daggerok

Copy link
Copy Markdown
Owner

What changed

  • Re-applied the shared nport-reader block (workspace etf-std/nport-reader.block.ts, open item Q33). nportTickers takes the Nasdaq Trader symbol directories as a third argument: a common-stock row with a foreign ISIN traded in USD keeps a ticker when nasdaqlisted.txt / otherlisted.txt list that ticker for the same company (nportUsListed: same name key, never a depositary or New York registry line); a local line in another currency, and every foreign row when the directories failed, still gets -. Renamed issuers resolve through nportRenamedIssuers() (old N-PORT name -> ticker, only on the same CUSIP issuer number and while SEC still lists the ticker; 73 EDGAR-confirmed entries, e.g. Exxon Mobil -> XOM, Tempur Sealy -> SGI, Hartford Financial -> HIG)
  • Wiring: loadUsListings loads both directories once per run through the SEC request helper of the N-PORT reader (readUsListings, null when either fails) and passes them to nportTickers

Why

U.S.-listed foreign issuers without a U.S. ISIN (Linde, Accenture, Chubb, NXP, IMAX, Lionsgate, Agnico Eagle, the Puerto Rico banks) and issuers whose SEC title changed after a rename or reorganization (ExxonMobil Holdings) published -, so Copy Tickers and the Watchlist lost them

Effect on real filings

Every fund of this feed with an N-PORT-P filing (92 filings, 39232 positions), newest filing read with the shared reader, old block (5935f58) vs this block on byte-identical cached SEC answers and directories of 2026-10-26; nothing written to api/:

TOTAL tickers 8090 -> 8462: 372 restored, 0 removed, 0 moved to another ticker
GDE (2026-05-31, 506 positions): tickers 467 -> 502
NTSD (2026-06-30, 510 positions): tickers 468 -> 503
WAMA (2026-06-30, 505 positions): tickers 469 -> 504
NTSX (2026-06-30, 508 positions): tickers 467 -> 501
EPS (2026-06-30, 506 positions): tickers 473 -> 504
EES (2026-06-30, 892 positions): tickers 858 -> 886
restored (identifier -> ticker, funds):
  NXP SEMICONDUCTORS NV [NL0009538784, USD] -> NXPI (9)
  MEDTRONIC PLC [IE00BTN1Y115, USD] -> MDT (7)
  SLB LTD [806857108, USD] -> SLB (7)
  CREDO TECHNOLOGY GROUP HOLDING LTD [KYG254571055, USD] -> CRDO (7)
  FABRINET [KYG3323L1005, USD] -> FN (7)
  BUNGE GLOBAL SA [CH1300646267, USD] -> BG (7)
  TE CONNECTIVITY PLC [IE000IVNQZ81, USD] -> TEL (7)
  CARNIVAL CORP LTD [BMG2004J1036, USD] -> CCL (6)
  PENTAIR PLC [IE00BLS09M33, USD] -> PNR (6)
  CRH PLC [IE0001827041, USD] -> CRH (6)
  TRANE TECHNOLOGIES PLC [IE00BK9ZQ967, USD] -> TT (6)
  ARCH CAPITAL GROUP LTD [BMG0450A1053, USD] -> ACGL (6)
  WILLIS TOWERS WATSON PLC [IE00BDB6Q211, USD] -> WTW (6)
  JOHNSON CONTROLS INTERNATIONAL PLC [IE00BY7QL619, USD] -> JCI (6)
  FTAI AVIATION LTD [KYG3730V1059, USD] -> FTAI (6)

Independent check over all 26 N-PORT brands: 761 of the 776 distinct restored identifier/ticker pairs equal OpenFIGI's U.S. ticker of that ISIN or CUSIP; for the other 15 OpenFIGI knows only a European line of the ISIN or not the CINS, and the Nasdaq Trader name confirms the company (Gates Industrial, Marex, Wave Life Sciences, Expro, Tecnoglass, Amcor, ...). No existing ticker moved to another security (0 moved above)

Checks

  • bun test and bun test with every update-data.config.json control exported: 66 pass 0 fail, exit 0 both
  • bun build --target=bun scripts/update-data.ts --outfile=/dev/null, bun build --target=bun src/main.tsx --outfile=/dev/null, git diff --check
  • apply-block.ts --check nport-reader .: identical; tc/check.sh .: no new errors (52 lines, before 52)
  • Template tests blocks.test.ts: 16 pass (renamed issuers, directories, foreign ISIN cases fail on the old block)

Shared nport-reader block (workspace d7db168, open item Q33): a common stock with a foreign ISIN traded in USD keeps its ticker when the Nasdaq Trader symbol directories list it for the same company; renamed issuers resolve through the EDGAR-confirmed alias list.
@daggerok
daggerok merged commit 6613d57 into main Oct 26, 2026
1 check passed
@daggerok
daggerok deleted the fix/q33-renamed-and-us-listed-tickers branch October 26, 2026 19:40
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.

1 participant