Audience:

AIAI-generated narration (synthetic voice) · real application footage

FundsXML for developers · film 4 of 9

Portfolios and asset master data

The portfolio part of a FundsXML document: positions with their value and weight, the instrument-specific block (equities, bonds, fund units, options, FX forwards, cash), the link from a position to its asset in AssetMasterData through UniqueID (xs:ID and xs:IDREF), a broken link found by the schema, portfolio breakdowns, and how fund-of-fund look-through is modelled.

    Transcript

    Intro 0:00

    In this film you read the portfolio of a fund, follow a position to its master data, and see how the schema protects that link. It takes about six minutes.

    The portfolio 0:10

    The portfolio is part of the fund's dynamic data. Portfolios can hold several portfolios, each with a NAV date, the valuation day, and a list of positions.

    A position 0:21

    Each position starts with a UniqueID, and identifiers like the ISIN. Then come its currency, here the US dollar, its total value in the fund currency, and its weight: 1.21 percent of the net asset value. For a position in a foreign currency, the exchange rate used is given as well. The last block depends on the kind of instrument. For a share, it holds the number of units, the price in dollars, and the market value in both currencies. Every position has the same shape. A common head: the link to the asset, its value in the fund currency, and its weight. Then exactly one block for the kind of instrument, chosen from about twenty: equity, bond, fund units, options, futures, currency forwards, swaps, deposits, accounts and more. The quantity sits inside that block: units for a share, a nominal for a bond, contracts for an option. A bond has a nominal value and a price in percent instead. A fund unit holds a number of shares. An option holds contracts. And cash, here call money, needs hardly more than its value.

    Master data 1:30

    What a security is, is not repeated in every position. The UniqueID points to the asset master data further down. There, asset ID_0002 is described once: Driftwood Engineering, a fictional share from the United States, listed in New York, with the LEI of its issuer. If several funds or portfolios hold the same share, its master data still appears only once. An asset has its own fixed shape. The UniqueID is the anchor. Then come its identifiers and its name, its currency, and the asset type, a two-letter code: EQ for equity, BO for bond, SC for a fund's share class, OP for an option, FX for a currency forward, and so on. Asset details hold what is specific to the kind: the issuer of a share, the coupon of a bond, the strike of an option, or the counterparty of a forward. Now a bond, from the position to its asset. The position holds a nominal of 6.2 million euro, at a price of 105.36 percent. Nominal times price gives the market value, and the interest accrued since the last coupon is added on top. On the asset side, the bond is described once: a government bond of a fictional state, with its issuer and the issuer's LEI, the maturity date in October 2045, and a fixed coupon of 3.75 percent. And a fund unit, here an exchange-traded fund. The position holds about 41,000 shares at 83.80 euro. The asset is of type SC, a share class of another fund, with the management company of that fund as its issuer. This is the starting point for look-through: the target fund can be delivered in the same file, with its own portfolio. Here is a currency forward. On the asset side: buy about 21 million dollars, sell about 18 million euro, at an agreed rate, with maturity in December, and the counterparty with its LEI. On the position side, the total value is the forward's current market value, which can also be negative. Technically, this is a link the XML parser itself checks. On the asset, UniqueID is declared as an ID: it must be unique in the whole document. On the position, it is an ID reference: it must point to an existing ID. The value must be a valid XML name, so it must not start with a digit. A good habit is a stable value: the same asset keeps the same ID from one delivery to the next.

    A broken link 4:00

    The schema protects this link. Change the UniqueID of the first position to an asset that does not exist, and press F8. The schema reports that there is no asset with this ID. Set the ID back, validate again, and the document is in order.

    Breakdowns and look-through 4:16

    A portfolio can also carry breakdowns: the fund's weights by country, currency, sector or asset class, already calculated by the sender. A breakdown can combine several dimensions, for example country and currency, and can be nested. The receiver can use them as they are, and should allow for small rounding differences. Breakdowns are useful for receivers who only need an overview, such as a factsheet, and do not want to aggregate every position themselves. And funds that hold other funds? A position of the kind ShareClass points to the target fund. The target fund can be delivered in the same file, as a fund of its own, with its own portfolio. And a portfolio can also carry decomposed positions, where fund holdings are replaced by the scaled-down positions of the target funds. That is how look-through works in FundsXML: through the fund hierarchy, not through extra fields on each position. That was the portfolio and its master data. In the next film, you see how transactions and investor flows are recorded. Thanks for watching.

    All films with descriptions

    FundsXML for business

    1. Why fund data needs a standard (6:24)

      Why the fund industry needs a common data format: how fund data travels between asset managers, administrators, custodians, distributors, insurers, data vendors and regulators; what goes wrong without a standard; how regulation drives the need for structured data; and how FundsXML, an open standard made by the fund industry, answers it.

    2. What a FundsXML delivery contains (5:47)

      What a FundsXML delivery carries, in business terms: fund and share class master data, net asset values and prices, portfolios and holdings, transactions and distributions, documents, country modules and regulatory data. Why static and dynamic data are kept apart, typical kinds of deliveries, and a look into a real file.

    3. Regulatory reporting with FundsXML (7:51)

      How FundsXML carries the European regulatory templates: why regulation needs structured fund data, the roles of FinDatEx and FundsXML, the templates EMT (MiFID II), EPT (PRIIPs), EET (SFDR and ESG), TPT (Solvency II look-through) and EFT (feedback from distributors), who sends what to whom, template versions, national reporting and the European Single Access Point.

    4. Trust in the data: quality and control (5:02)

      How the quality of fund data is secured with FundsXML: why a valid file is not yet correct data, the three levels readable, valid and plausible, what the schema checks and what business rules check, check digits of identifiers, checks on both sides, corrections and versions, and a data-quality report in FreeXmlToolkit.

    5. Introducing FundsXML: a project from A to Z (7:05)

      How a FundsXML project runs, from the first idea to daily operation: scope, mapping, prototype and pilot, testing, go-live and operations; the roles involved, typical pitfalls, what is available free of charge, how versions and the standard evolve, and how to take part.

    6. Taking part in FundsXML (5:30)

      How FundsXML evolves and how to take part: who decides about the standard, the FundsXML Standards Committee and the three working groups (Content & Technique, Promotion, Documentation), associate and full membership, contributing on GitHub, the path of a change request from proposal to a new version, small and large changes, and what makes a good change request.

    FundsXML for developers

    1. Set up FreeXmlToolkit for FundsXML (3:48)

      Set up a free working environment for FundsXML: turn on the FundsXML extension of FreeXmlToolkit, choose the schema version, get to know the FundsXML panel and its tools, read the schema's documentation of any element, open the schema itself, and start from an official example file. Also: why FundsXML needs an XSD 1.1 validator, and the two forms in which the schema is published. With an overview of other tools: command line validators, IDEs and the online documentation.

    2. Anatomy of a delivery: structure and ControlData (4:13)

      How a FundsXML document is built: the root element FundsXML4, its main blocks (ControlData, Funds, AssetMasterData, Documents, RegulatoryReportings, CountrySpecificData), and ControlData in detail: document ID, timestamps, schema version, content date, data supplier, and the data operations INITIAL, AMEND and DELETE with related document IDs. With common pitfalls. Includes turning a delivery into a correction in FreeXmlToolkit.

    3. Funds, share classes and NAV (6:17)

      The fund part of a FundsXML document: fund identifiers and names, SingleFundFlag with single funds and umbrellas, FundStaticData and FundDynamicData, the total net asset value, share classes with prices, shares outstanding and amounts in several currencies (AmountType with ccy), action codes, and checking ISIN and LEI check digits in FreeXmlToolkit.

    4. Portfolios and asset master data (5:22)

      The portfolio part of a FundsXML document: positions with their value and weight, the instrument-specific block (equities, bonds, fund units, options, FX forwards, cash), the link from a position to its asset in AssetMasterData through UniqueID (xs:ID and xs:IDREF), a broken link found by the schema, portfolio breakdowns, and how fund-of-fund look-through is modelled.

    5. Transactions and investor flows (3:44)

      How FundsXML records what moved in a fund: subscriptions and redemptions of investors (Flows on the share class), distributions (Distributions), income from the portfolio (Earnings) and the portfolio's own trades (Transactions), with reporting periods, dates, amounts in several currencies and the links to the assets. Also: how switches are reported, and what the core schema leaves to other standards.

    6. Regulatory templates in XML (4:42)

      How the FinDatEx templates sit in a FundsXML file: RegulatoryReportings with DirectReporting and IndirectReporting, an EMT V4.2 block (data set information, general information, target market, ex-ante costs) and a TPT V7 block for Solvency II (portfolio data, positions with CIC codes and valuations), template versions as their own elements, and how country-specific data and custom attributes extend the standard.

    7. Documents: link, embed, extract (7:57)

      How FundsXML carries documents such as prospectuses, PRIIPs KIDs and factsheets: the Documents block, document types, languages and countries, the assignment to funds and share classes, format, signature and dates, delivery as a link or embedded as base64, replacing and restricted documents, and the Documents tool of FreeXmlToolkit to save embedded documents and embed new ones.

    8. Validate and check data quality (5:03)

      Validate a FundsXML delivery in two stages: against the XSD 1.1 schema, reading and fixing its error messages, and against business rules with the FundsXML data-quality checks of FreeXmlToolkit. With the data-quality report, a catalogue of typical schema errors, Schematron rules, and validation on the command line and in build pipelines.

    9. Query, transform and integrate (4:13)

      Work with the data in a FundsXML file: XPath paths without a namespace, the ready-made FundsXML queries in the Query Console of FreeXmlToolkit (the ten largest positions as a table), an XSLT stylesheet that turns the positions into CSV, a large file read as a stream in Python with lxml (half a million positions with flat memory, from the FundsXML examples), classes generated from the schema, and the way on to a database.

    FundsXML in production

    1. A FundsXML delivery chain (7:19)

      How FundsXML runs in production: who sends what to whom, the whole delivery chain on one page (sources, central database, generator, validation, SFTP, API and portals), the chains of sender and receiver, security, rhythms and schema versions, the five building blocks of a production setup, roles, build or buy, two environments, document IDs, and the complete example used in this series, which can be downloaded.

    2. FundsXML in a database (11:55)

      How FundsXML data is stored in a database, with the complete PostgreSQL example of the FundsXML examples repository: the XML column and shredded tables, layers, a table model in which everything that repeats is a row (several funds per file, umbrellas and subfunds, several NAVs per day and currency, portfolios and positions, look-through), keys and assets without an ISIN, amounts and currencies, code lists, dates, transactions in four places, documents, regulatory templates, history and corrections, views, quality, access and performance. All files can be downloaded.

    3. Loading FundsXML files (11:21)

      How FundsXML files get into a database safely, with the loader of the complete PostgreSQL example: the steps of a robust loader, a landing folder, cheap checks first, triggers, validation and schema versions, idempotency through the UniqueDocumentID, full and delta deliveries, streaming large files with one handler per repeating element, funds and subfunds, the order of assets and positions, asset keys, transactions, documents and regulatory templates, business rules, speed, six deliveries and four broken files at work, corrections and deletions, reconciliation, code checks, error reports, tests and release. All files can be downloaded.

    4. Generating FundsXML (10:14)

      How to produce FundsXML from a database, with the generator of the complete PostgreSQL example: start with the target file, a mapping table, a partner register that says which data goes to whom, templates, XSLT or generated code, ControlData, writing share classes, several funds and dates in one file, element order, empty elements and formats, validation in FreeXmlToolkit, corrections, large deliveries, several schema versions, partner configuration, time windows, golden files, CI and the round trip, handing over, resends and documentation. All files can be downloaded.

    5. Running FundsXML in daily operations (7:49)

      What daily operation of a FundsXML chain needs: a day in operations, monitoring and a delivery overview, duty and runbooks, error classes and incident handling with an example, reconciliation, feedback, agreements with partners, onboarding, changes in the partner landscape, security, schema upgrades, the archive, metrics, people, reporting, typical first-year issues, a checklist, and staying involved in the standard.