Module writer
Expand description
The cashflow writer: a read document’s stated cashflows completed with what helixio prices them at, spliced into the document’s own text.
The output is the input with elements inserted and nothing else touched: each new element goes right after the last existing sibling that precedes it in the FpML 5.14 content model, preceded by a copy of the whitespace before that sibling and carrying its parent’s namespace prefix. Rows pair with the leg’s coupons by position, as the schedule-conformance oracle pairs them, so a row whose stated dates are a known erratum still carries the value of the coupon helixio generates for it.
Structs§
- Edit 🔒
- Insertions under one parent element.
- Period 🔒
- One calculation period of a priced coupon.
- Value 🔒
- What a coupon still owed is worth.
Constants§
- CALCULATION 🔒
CalculationPeriod’s child order.- EXCHANGE 🔒
PrincipalExchange’s child order.- OBSERVATION 🔒
RateObservation’s child order.- PAYMENT 🔒
PaymentCalculationPeriod’s child order in the 5.14 confirmation schema.- WRITTEN 🔒
- Every element the writer inserts, by the parent it inserts it under.
Functions§
- complete
- Completes the stated cashflows of the first trade in
textwith its values onmarket, and returns the document’s text with them inserted. - complete_
row 🔒 - Writes a priced coupon’s values into its stated row.
- exchange_
row 🔒 - The currency and discount factor of leg
leg’s exchange ondate, orNonewhere it is paid. - find_
row 🔒 - The row of leg
legofkindaccruing fromstartand paying onpay. - number 🔒
- A decimal as
xsd:decimalspells it: Rust’sf64display never uses an exponent, and is the shortest text that reads back to the same value. - rate_
bearing 🔒 - A leg’s coupons a stated row pairs with: all but its principal exchanges.
- refuse_
written 🔒 - Refuses a block whose rows already carry an element the writer inserts.
- value 🔒
- The records row of
couponon legleg, priced, orNonewhere it is paid and the table omits it.