API Reference#
Indices and tables#
Notation#
Defaults#
Classes#
Scheduling#
Functions#
|
Add a tenor to a given date under specific modification rules and holiday calendar. |
|
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#
|
Generate a schedule of dates according to a regular pattern and calendar inference. |
|
Enumerable type for date adjustment rules. |
|
Enumerable type for a scheduling frequency. |
|
Enumerable type for |
|
Specifier for day count conventions |
|
Enumerable type for International Money-Market (IMM) date definitions. |
|
A business day calendar defined by weekends and a holiday list. |
|
A wrapped |
|
Enumerable type for roll days. |
|
A calendar defined by a business day intersection of multiple |
Piecewise Polynomial Splines#
Functions#
|
Calculate the m th order derivative (from the right) of an indexed b-spline at x. |
|
Calculate the value 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-64 values on the x-axis and |
|
Piecewise polynomial spline composed of float-64 values on the x-axis and |
|
Piecewise polynomial spline composed of float-64 values on the x-axis and float-64 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#
|
Defines the order of gradients available in a calculation with AD. |
|
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 |
|
A |
|
A |
|
A dynamic composition of a sequence of other |
|
A |
|
Imply a |
|
A container of meta data associated with a |
|
Enumerable type to define the difference between a discount factor (DF) based and values based |
|
A container for data relating to interpolating |
|
A container for data relating to interpolating |
|
An immutable container for the pricing parameters of a |
|
A container for data relating to interpolating the DFs of a |
|
Create a new |
|
Create a new |
|
Create a new |
Provides automatic implementation of the curve operations required on a |
|
An ABC defining the base methods of a Curve. |
|
|
This class is designed as a mixin for the methods for Curve Pricing Objects, i.e. the |
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 |
|
|
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 |
|
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#

Serialization#
Functions#
|
Create an object from JSON string. |
Cookbook#
Please see here for the cookbook index.