API Reference#
Indices and tables#
Notation#
Defaults#
Classes#
|
A business day calendar with a singular list of holidays. |
|
The defaults object used by initialising objects. |
|
Class to lazy load fixing data from CSV files. |
|
A wrapper for a UnionCal struct specified by a string representation. |
|
Enumerable type to handle setting default values. |
|
A business day calendar which is the potential union of multiple calendars, with the additional constraint of also ensuring settlement compliance with one or more other calendars. |
Calendars#
Functions#
|
Add a tenor to a given date under specific modification rules and holiday calendar. |
|
Create a calendar with specific business and holiday days defined. |
|
Calculate the day count fraction of a period. |
|
Returns a calendar object either from an available set or a user defined input. |
|
Return an IMM date for a specified month. |
Classes#
|
A business day calendar with a singular list of holidays. |
|
Enumerable type for modification rules. |
|
A wrapper for a UnionCal struct specified by a string representation. |
Enumerable type for roll day types. |
|
|
A business day calendar which is the potential union of multiple calendars, with the additional constraint of also ensuring settlement compliance with one or more other calendars. |
Scheduling#
Classes#
|
Generate a schedule of dates according to a regular pattern and calendar inference. |
Highlighted private functions#
|
Tests whether the given the parameters define a regular leg schedule without stubs. |
|
Attempts to infer either a front or back stub in an unspecified schedule. |
Piecewise Polynomial Splines#
Functions#
|
Calculate the value of an indexed b-spline at x. |
|
Calculate the m th order derivative (from the right) of an indexed b-spline at x. |
|
Evaluate a single x-axis data point, or a derivative value, on a Spline. |
Classes#
|
Piecewise polynomial spline composed of float values on the x and y axes. |
|
Piecewise polynomial spline composed of float values on the x-axis and Dual values on the y-axis. |
|
Piecewise polynomial spline composed of float values on the x-axis and Dual2 values on the y-axis. |
Dual (for AD)#
Functions#
|
Calculate the logarithm of a regular int or float or a dual number. |
|
Calculate the exponential value of a regular int or float or a dual number. |
|
Solve a linear system of equations involving dual number data types. |
Return the standard normal probability density function. |
|
Return the cumulative standard normal distribution for given value. |
|
Return the inverse cumulative standard normal distribution for given value. |
|
|
Return derivatives of a dual number. |
|
Convert a float, |
|
Changes the order of a |
Classes#
|
Dual number data type to perform first derivative automatic differentiation. |
|
Dual number data type to perform second derivative automatic differentiation. |
|
A user defined, exogenous variable that automatically converts to a |
Curves#
Functions#
|
Return the geometric, 1 calendar day, average rate for the rate in a period. |
|
Return the interval index of a value from an ordered input list on the left side. |
|
Perform local interpolation between two data points. |
Classes#
|
A dynamic composition of a sequence of other curves. |
|
Curve based on DF parametrisation at given node dates with interpolation. |
|
A subclass of |
|
Curve based on value parametrisation at given node dates with interpolation. |
|
A dynamic composition of a sequence of other curves. |
|
A subclass of |
Class Inheritance Diagram#
FX#
Functions#
|
Return a forward FX rate based on interest rate parity. |
Classes#
|
Class for storing and calculating FX forward rates. |
|
Object to store and calculate FX rates for a consistent settlement date. |
FX Volatility#
Classes#
|
Create an FX Volatility Smile at a given expiry indexed by delta percent. |
|
Create an FX Volatility Surface parametrised by cross-sectional Smiles at different expiries. |
Periods#
Link to the Periods section in the user guide.
Classes#
|
Abstract base class with common parameters for all |
|
Create a single cashflow amount on a payment date (effectively a CustomPeriod). |
|
Create a credit premium period defined by a credit spread. |
|
Create a credit protection period defined by a recovery rate. |
|
Create an FXCallPeriod. |
|
Abstract base class for constructing volatility components of FXOptions. |
|
Create an FXPutPeriod. |
|
Create a period defined with a fixed rate. |
|
Create a period defined with a floating rate index. |
|
Create a cashflow defined with a real rate adjusted by an index. |
|
Create a period defined with a real rate adjusted by an index. |
Abstract base class to include methods and properties related to indexed Periods. |
Class Inheritance Diagram#
Legs#
Link to the Legs section in the user guide.
Classes#
|
Create a leg contained of user specified |
|
Abstract base class with common parameters for all |
|
Abstract base class with common parameters for all |
|
Create a fixed leg composed of |
|
Create a leg of |
|
Create a floating leg composed of |
|
Create a leg of |
|
Create a leg of |
|
Create a zero coupon fixed leg composed of a single |
|
Create a zero coupon floating leg composed of |
|
Create a zero coupon index leg composed of a single |
|
Create a credit premium leg composed of |
|
Create a credit protection leg composed of |
Class Inheritance Diagram#
Instruments#
Classes#
|
Abstract base class with common parameters for many Derivative subclasses. |
|
Create a discount security. |
|
Define calculation conventions for |
|
Define calculation conventions for |
|
Create a bond future derivative. |
|
Create a credit default swap composing a |
|
Create a forward rate agreement composing single period |
|
Create an FX BrokerFly option strategy. |
|
Create an FX Call option. |
|
Create a simple exchange of two currencies. |
|
Create an FX Option. |
|
Create a custom option strategy composed of a list of |
|
Create an FX Put option. |
|
Create an FX Risk Reversal option strategy. |
|
Create an FX Straddle option strategy. |
|
Create an FX Strangle option strategy. |
|
Create an FX swap simulated via a Fixed-Fixed |
|
Create a fixed rate bond security. |
|
Create a floating rate note (FRN) security. |
|
A butterfly instrument which is, mechanically, the spread of two spread instruments. |
|
Create an indexed interest rate swap (IIRS) composing an |
|
Create an interest rate swap composing a |
|
Create an indexed fixed rate bond security. |
|
Create a collection of Instruments to group metrics |
|
Create a single currency basis swap composing two |
|
Create a short term interest rate (STIR) future. |
Base class to add risk sensitivity calculations to an object with an |
|
|
A spread instrument defined as the difference in rate between two Instruments. |
|
A null Instrument which can be used within a |
|
A null Instrument which can be used within a |
|
Create a cross-currency swap (XCS) composing relevant fixed or floating Legs. |
|
Create a zero coupon index swap (ZCIS) composing an |
|
Create a zero coupon swap (ZCS) composing a |
Class Inheritance Diagram#
Solver#
Functions#
|
Use the Newton-Raphson algorithm to determine the root of a function searching one variable. |
|
Use the Newton-Raphson algorithm to determine a function root searching many variables. |
|
Solve the quadratic equation, \(ax^2 + bx +c = 0\), with error reporting. |
Classes#
Class Inheritance Diagram#
Cookbook#
Please see here for the cookbook index.