API Reference#
Indices and tables#
Notation#
Defaults#
Classes#
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. |
|
Return the next IMM date after the given start date. |
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, |
|
|
|
Use the Newton-Raphson algorithm to determine a function root searching many variables. |
|
Use the Newton-Raphson algorithm to determine the root of a function searching one variable. |
|
Use the inverse function theorem to determine a function value of one variable. |
|
Solve the quadratic equation, \(ax^2 + bx +c = 0\), with error reporting. |
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-day, average simple rate for a given simple period rate. |
|
Return the interval index of a value from an ordered input list on the left side. |
|
Determine an index value from a reference date using combinations of known fixings and forecast from a Curve. |
Classes#
|
A dynamic composition of a sequence of other curves. |
|
Curve based on DF parametrisation at given node dates with interpolation. |
|
Curve based on value parametrisation at given node dates with interpolation. |
|
A dynamic composition of a sequence of other curves. |
|
A subclass of |
|
An immutable container of meta data associated with a |
|
Enumerable type to define the difference between discount factor based Curves and values based Curves. |
|
A container for data relating to interpolating the nodes of a Curve using a cubic PPSpline. |
|
A container for data relating to interpolating the nodes of a |
|
An immutable container for the pricing parameters of a |
|
A container for data relating to deriving the DFs of a |
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 strike using SABR parameters. |
|
Create an FX Volatility Surface parametrised by cross-sectional Smiles at different expiries. |
|
Create an FX Volatility Surface parametrised by cross-sectional Smiles at different expiries. |
|
Create an FX Volatility Smile at a given expiry indexed by delta percent. |
|
An immutable container of meta data associated with a |
|
An immutable container of meta data associated with a |
A container for data relating to interpolating the nodes of a |
|
|
A container for data relating to interpolating the nodes of a |
|
An immutable container of meta data associated with a |
|
An immutable container of meta data associated with a |
|
A container for data relating to the SABR parameters of a |
Periods#
Link to the Periods section in the user guide.
Classes#
|
Abstract base class with common parameters for all |
|
Abstract base class for constructing volatility components of FXOptions. |
|
Create an FXPutPeriod. |
|
Create an FXCallPeriod. |
|
Create a single cashflow amount on a payment date (effectively a CustomPeriod). |
|
Create a cashflow amount associated with a non-deliverable FX forward. |
|
Create a credit premium period defined by a credit spread. |
|
Create a credit protection period defined by a recovery rate. |
|
Create a cashflow defined with a real rate adjusted by an index. |
|
Create a period defined with a real rate adjusted by an index. |
|
Create a period defined with a fixed rate. |
|
Create a FixedPeriod whose non-deliverable cashflow is converted to a |
|
Create a period defined with a floating rate 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. |
|
Base class for Instruments adding optional pricing parameters, such as fixed rates, float spreads etc. |
|
Create a discount security. |
Inheritable class to provide basic functionality. |
|
|
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 non-deliverable forward (NDF). |
|
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#
Classes#
Class Inheritance Diagram#

Cookbook#
Please see here for the cookbook index.