Legs#
Conventional Legs#
The rateslib.legs module creates Legs which
typically contain a list of Periods. The pricing, and
risk, calculations of Legs resolves to a linear sum of those same calculations
looped over all of the individual Periods.
Like Periods, it is probably quite
rare that Legs will be instantiated directly, rather they will form the
components of Instruments, but none-the-less, this page
describes their construction.
|
A Leg containing |
|
A Leg containing |
|
A zero coupon Leg composed of a single |
|
A zero coupon Leg composed of a single |
|
A Leg composed of indexed |
Credit Legs#
|
A Leg containing |
|
A Leg containing |
Custom Legs and Objects#
|
A Leg containing user specified |
|
An amortization schedule for any |
|
Abstract base class used in the construction of Legs. |
Protocols#
|
Protocol to establish value of any Leg type. |
Protocol to generate cashflows of any Leg type. |
|
Protocol to calculate analytical rate delta sensitivities of any Leg type. |
|
Protocol to calculate analytical rate fixing sensitivities of any Leg type. |
|
|
Protocol to determine if a Leg is ex-dividend on a given settlement. |