Repository navigation
feat(samples): realistic month-end files generated from fictional funds - #35
Merged
Merged
Conversation
…sses The rule matched every element named ShareClass, including share-class holdings (Position/ShareClass, AssetDetails/ShareClass) that are identified on their Position/Asset; it warned on each fund-of-funds holding. The canonical sample now has 8 advisory warnings instead of 12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FundsXML_Files/4.2.9/realistic/ holds four month-end files at production scale: a global equity fund (123 positions, 3 share classes), a euro bond fund (207 positions), a multi-asset fund with listed and OTC derivatives (81 positions over 12 asset types) and a fund of funds with look-through. They carry a month of transactions, income, flows, daily prices, performance, breakdowns, risk codes and exposures; positions add up to the net assets and share classes to the fund, to the cent. make_realistic.py (standard library, deterministic) writes them; identifiers are synthetic with valid check digits (ISIN CC+XMPL..., LEI XMPL00...). CI regenerates and compares the files, lints every ISIN and LEI, validates them against 4.2.9 and runs Schematron, the custom DQ check, the factsheet, the CSV export and the fund-summary reconciliation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds four realistic month-end FundsXML 4.2.9 files of fictional funds, and the generator that writes them. The existing small samples stay unchanged as teaching samples and CI fixtures.
Global-Equity-Fund_2025-10.xmlEuro-Bond-Fund_2025-10.xmlMulti-Asset-Derivatives-Fund_2025-10.xmlFund-of-Funds_2025-10.xmlPositionsDecomposed)They include fund static data (companies, managers, benchmark, costs, SFDR), daily prices and benchmark values, distributions, fees, flows, performance with data series, breakdowns, risk codes, exposures, dividends with withholding tax, coupons, accrued interest, ratings and durations. Together they use far more of the schema than the small samples (about 250 distinct elements per file, against 148 across all of today's 4.2.9 samples).
Consistency (the generator asserts it before writing):
Synthetic identifiers with valid check digits: ISIN = country +
XMPL+ 5 characters + Luhn digit, LEI =XMPL00+ 12 characters.--verify-onlineasked GLEIF and ESMA FIRDS: none of the 205 LEIs and 400 ISINs is registered. Company, fund and issuer names are fictional.Also in this PR
basic_checks.sch: the share-class ISIN rule now only checks the fund's own share classes. It used to warn on every share-class holding, which gave 35 warnings on the fund of funds. The canonical sample now has 8 advisory warnings instead of 12; the docs are updated.FundsXML_Files/andtests/fixtures/;fail), the factsheet and the CSV export;fund-summary.xqreconciliation (NavDelta = 0.00, percentages OK).Checked locally (FreeXmlToolkit
fxt-cli, Saxon HE 12, Xerces):🤖 Generated with Claude Code