Skip to content

feat(samples): EMT and TPT in the multi-asset realistic sample - #36

Merged
karlkauc merged 1 commit into
mainfrom
feat/realistic-regulatory
Nov 24, 2026
Merged

karlkauc merged 1 commit into
mainfrom
feat/realistic-regulatory

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

What

  • make_realistic.py writes RegulatoryReportings into Multi-Asset-Derivatives-Fund_2025-10.xml:
    • DirectReporting/EMT_V4_2: one FinancialInstrument per share class (target market, costs from the fund's cost data)
    • IndirectReporting/TripartiteTemplateSolvencyII_V7: portfolio of the EUR R class, 45 positions (equities CIC xx31, bonds xx11/12/21/26) with valuation, weights against the fund's net assets, interest-rate data, issuer and duration
  • Share classes in a non-fund currency mark their net assets with isShareClassCcy / isFundCcy (Global Equity and Multi Asset).
  • DQ checks: basic_checks.sch / basic_checks.xslt select Funds/Fund, custom_internal_checks.xslt selects Portfolios/Portfolio/Positions/Position. Before, they also matched the EMT's CostsAndChargesExAnte/Fund and the TPT positions.

Why

The FundsXML training videos switch to these fictional samples and need an EMT and a TPT block to show.

Checked locally

  • generator deterministic (two runs, byte-identical); --lint 0 problems
  • all four files valid against 4.2.9 (libxml2 and Xerces XSD 1.1) and the current 4.2.11 schema
  • basic_checks.sch: 0 errors / 0 warnings; custom DQ: no fail; factsheet, positions CSV and fund-summary.xq (NavDelta 0.00, percentages ok) on all four files

🤖 Generated with Claude Code

…cy flags

The multi-asset realistic sample now carries RegulatoryReportings: an EMT V4.2
per share class (DirectReporting) and a TPT V7 of the EUR R class with the
fund's equities and bonds (IndirectReporting), all derived from the fund data
by make_realistic.py. Share classes in another currency than the fund mark
their two net asset amounts with isShareClassCcy / isFundCcy.

The data quality checks selected every element called Fund or Position, which
also hit CostsAndChargesExAnte/Fund of the EMT and the TPT positions; they now
select Funds/Fund and Portfolios/Portfolio/Positions/Position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@karlkauc
karlkauc merged commit f0086a8 into main Nov 24, 2026
4 checks passed
@karlkauc
karlkauc deleted the feat/realistic-regulatory branch November 24, 2026 13:55
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