Skip to main content

Module swap

Module swap 

Expand description

A swap product: each swapStream into a leg, the pair into a single-currency or cross-currency swap.

StructsΒ§

Adjustment πŸ”’
A business-day convention and the centres it rolls on.
Bound πŸ”’
A strike schedule on a floating stream: a capRateSchedule or floorRateSchedule, and whether the stream’s receiver buys it.
Exchanges πŸ”’
What a principalExchanges element states.
InflationTerms πŸ”’
An inflationRateCalculation: the price index, its lag and how it is read inside the month.
Nds πŸ”’
A stream settling non-deliverably: in settlement, at the source fixing, offset before each payment under adjustment.
Offset πŸ”’
A date offset in days of a stated type.
Steps πŸ”’
A value with dated steps: a notional or a fixed-rate schedule.
StreamLeg πŸ”’
A stream read into a leg, with what the swap assembly needs beside it.

EnumsΒ§

Rate πŸ”’

FunctionsΒ§

approximate_days πŸ”’
A tenor’s rough length in days, enough to order two stub tenors.
basis πŸ”’
Two floating streams in one currency: a tenor basis swap, the spread on the stream that states one. The legs keep their own sides, so the spread leg may be paid.
calculation_parameters πŸ”’
Reads calculationParameters: how an overnight rate accumulates, on which business days, and the lookback, lockout or observation shift and daily bounds it observes under.
floating_index πŸ”’
floatingRateIndex and indexTenor under el, resolved.
known_amounts πŸ”’
A stream whose knownAmountSchedule states what each payment pays: one dated amount per payment, the amount in force at its period’s start.
months πŸ”’
A frequency in months, the unit payment grouping is counted in.
parse πŸ”’
A vocabulary value from an element’s text, the element named on refusal.
period πŸ”’
periodMultiplier and period under el.
read πŸ”’
Reads a swap element into a swap, us being the reporting party’s id, with the zero-based leg index each stream was read into: a swap orders its legs by role (fixed then floating, or paid then received), not by the document’s stream order.
read_product πŸ”’
Reads a swap product: the swap, then each additionalPayment the reporting party pays or receives as a fee.
roll πŸ”’
stream πŸ”’
Reads one swapStream: its dates, payments, amount, resets and exchanges, in the order the schema states them, into one leg.
unsupported πŸ”’