Skip to main content

Module fpml

Module fpml 

Source
Expand description

FpML document decoder: pinned XML Schema validation and configured typed projection. FpML document decoding: secure parsing, pinned XML Schema validation, reference integrity, and configured typed projection into Arrow.

One complete document per transport record (file or message). Each document passes, in order: a streaming pre-scan (UTF-8 only, no DTDs or processing instructions, structural limits), libxml2 parsing and XML Schema validation against a digest-pinned closure, document-local reference checks, and projection through a compiled profile. Any failure rejects the whole document before a row is returned.

Structs§

Artifact
A verified schema closure.
FpmlConfig
Parsed fpml.* options.
FpmlDecoder
Decodes one complete FpML document per record into rows of the profile’s schema.
Limits
Bounds applied to every document. Each is checked before the work it guards.
Profile
A compiled profile with its identity.
Rejection
Why one document was rejected. The detail is bounded and never contains raw document text beyond schema-vocabulary names and line numbers.

Enums§

ProfileSource
Where a profile comes from.
ReferencePolicy
How far href checking goes beyond resolution.
Stage
The decoding stage that rejected a document. Used as a bounded metrics label.

Constants§

BUNDLED_CONFIRMATION
Identifier of the bundled FpML 5.13 REC-2 confirmation-view closure.
BUNDLED_PROFILES
Bundled profiles: (name, root file).
DEFAULT_PROFILE
Bundled profile used when neither fpml.profile nor fpml.profile.path is set: one row per trade of any asset class, without product economics (the asset-class profiles add those).