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.
- Party
Ref - One party as the document states it.
- Read
Options - What a read needs beyond the document: the reporting party, and the reference data the trade’s terms point into.
Enums§
- Party
Selector - 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, orNonewhere the reporting party neither pays nor receives it. - payment_
date 🔒 - The adjusted date a
Paymentstates:adjustedPaymentDate, elsepaymentDaterolled under its own adjustments. - referenced_
parties 🔒 - The parties a product’s party references name, other than
us.