Skip to main content

Module trade

Module trade 

Expand description

The trade model: who “us” is, what the trade is called, whom it faces, what it discounts under, and the dated amounts it books beside its product.

Everything here is resolved before a product is built, so a product mapper receives the collateral a currency discounts under rather than building on a default and being re-pointed afterwards.

Structs§

Component
One component a trade books: its product, or a dated amount beside it.
Context 🔒
What every product mapper reads besides its own element.
Header 🔒
The trade-level reading: identifier, trade date, counterparty and the context a product is built in.
Parties 🔒
The parties of a document and which of them reports.
PartyRef
One party as the document states it.
ReadOptions
What a read needs beyond the document: the reporting party, and the reference data the trade’s terms point into.

Enums§

PartySelector
Which party of a document reports: the one whose side every leg is read from.

Functions§

payment 🔒
A Payment-shaped element (additionalPayment, premium, otherPartyPayment) as a dated amount signed for the reporting party, or None where the reporting party neither pays nor receives it.
payment_date 🔒
The adjusted date a Payment states: adjustedPaymentDate, else paymentDate rolled under its own adjustments.
referenced_parties 🔒
The parties a product’s party references name, other than us.