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
capRateScheduleorfloorRateSchedule, and whether the streamβs receiver buys it. - Exchanges π
- What a
principalExchangeselement states. - Inflation
Terms π - An
inflationRateCalculation: the price index, its lag and how it is read inside the month. - Nds π
- A stream settling non-deliverably: in
settlement, at thesourcefixing,offsetbefore each payment underadjustment. - Offset π
- A date offset in days of a stated type.
- Steps π
- A value with dated steps: a notional or a fixed-rate schedule.
- Stream
Leg π - 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 π floatingRateIndexandindexTenorunderel, resolved.- known_
amounts π - A stream whose
knownAmountSchedulestates 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 π
periodMultiplierandperiodunderel.- read π
- Reads a
swapelement into a swap,usbeing 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
swapproduct: the swap, then eachadditionalPaymentthe 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 π