Repository navigation
fix(samples): replace invalid and misattributed ISINs and LEIs - #34
Merged
Merged
Conversation
The samples used identifiers with wrong check digits (10 ISINs, 11 LEIs, e.g. XS2123456789, 724500Y6P2B0MRLY2T56) and real identifiers of unrelated parties: the fund LEI 529900T8BM49AURSDO55 belongs to Ubisecure Oy, AT0000A2QM66 is a silver certificate, and three more were labelled as other issuers. tools/repair_identifiers.py swaps each for a synthetic identifier of the same length with valid check digits (ISIN CC+XMPL..., LEI XMPL00...), checked unregistered at ESMA FIRDS and GLEIF. Numbers are unchanged; the fixtures still differ from the canonical sample by their one mutation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rt by ISIN) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
karlkauc
force-pushed
the
fix/synthetic-identifiers
branch
from
November 16, 2026 22:38
abb4122 to
cd227b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces every invalid or misattributed identifier in the samples with a synthetic one.
What was wrong
XS2123456789and724500Y6P2B0MRLY2T56. Validators and online lookups reject them.529900T8BM49AURSDO55(used in every sample) belongs to Ubisecure Oy.AT0000A2QM66is a real silver certificate.IE00B5BMR087is iShares, not Vanguard.DE0001102424is a different Bund.G5GSEF7VJP5I7OUK5573is Barclays, not HSBC.BFM8T61CT2L1QCEMIK50is UBS AG, not UBS Europe SE.What changes
tools/repair_identifiers.pyholds an explicit old → new table and replaces each value in every text file. The new identifiers have the same length and valid check digits:XMPL+ 5 characters + Luhn digit. National numbering agencies start with a digit, and ESMA FIRDS has noATXMPL/DEXMPL/IEXMPL/XSXMPLISINs.XMPL00+ 12 characters + MOD 97-10 check digits. GLEIF knows none of them.Real identifiers of correctly named public securities and companies (Apple, ASML, SAP …) stay. Numbers are untouched, so CI checks on values keep working.
Checked
--checkreports nothing left to change.FundsXML_Files/.sedrecipes, and each still differs from the canonical sample in exactly its one mutation.🤖 Generated with Claude Code