Periods#
The rateslib.periods module creates objects designed to generate single cashflows.
Typically these are the constituent part of Legs.
Conventional Periods#
The typical periods used in fixed income are as follows. Each of these natively allows non-deliverability and indexation, if the relevant parameters are supplied.
|
A Period defined by a fixed interest rate. |
|
A Period defined by a floating interest rate. |
|
A Period defined by a specific amount. |
Additional Periods#
The following periods add additional features suitable for certain Leg types.
|
A Period defined by a fixed interest rate, as a representation of multiple compounded Periods. |
|
A Period defined by compounded floating rate Periods. |
|
A Period defined by a specific amount calculated from the difference between two |
Credit Periods#
Credit periods provide the calculations for default protection and premium calculations using recovery rates and survivial probabilities defined by a Curve of hazard rates.
|
A Period defined by a fixed interest rate and contingent credit event. |
A Period defined by a credit event and contingent notional payment. |
FX Option Periods#
Volatility periods provide the basic calculations for european options priced with Black-76 pricing formula.
|
A Period defined by a European FX call option. |
|
A Period defined by a European FX put option. |
Custom Periods and Objects#
|
Abstract base class for Period types. |
|
Abstract base class for Static Period types. |
Abstract base class for FXOptionPeriods types. |
Protocols#
Protocols define the functionality implemented into the objects.
|
Protocol to define value of any Period type. |
Protocol for parameter and calculation display for the Period. |
|
Protocol for determining fixing sensitivity for a Period with AD. |
|
Protocol to establish analytical sensitivity to rate type metrics. |
|
Protocol to derive a rate fixings sensitivity DataFrame. |
|
Protocol to derive analytic FXOption greeks. |
|
Protocol to establish value of any Static Period type. |
|
Protocol for parameter and calculation display for the Static Period. |
|
Protocol to establish analytical sensitivity to rate type metrics for Static Period types. |
|
|
Protocol to derive an analytic rate fixings sensitivity DataFrame from pricing Curves. |
Protocol to provide indexation for Static Period types. |
|
Protocol to provide non-deliverable conversion for Static Period types. |
Parameters#
Parameters for Period cashflows adjusted under some indexation. |
|
Parameters for settlement of Period cashflows. |
|
Parameters of Period cashflows associated with some |
|
Parameters for a Period containing a fixed rate. |
|
Parameters for a Period containing a floating rate. |
|
Parameters for determination of non-deliverable Period cashflows. |
|
Parameters for Period cashflows associated with credit events. |
|
Parameters for Period cashflows associated with multiple |
|
Parameters for FX Option Period cashflows. |