Main Content

Interest-Rate Curve Objects and Workflow

Class Structure

Financial Instruments Toolbox™ class structure supports interest-rate curve objects. The class structure supports four classes.

Class Structure

Class Name

Description

IRDataCurve

Creates a representation of an interest-rate curve with dates and data.IRDataCurveis created directly by specifying dates and corresponding interest rates or discount factors, or you can bootstrap anIRDataCurveobject from market data.

IRFunctionCurve

Creates a representation of an interest-rate curve with a function.IRFunctionCurveis created directly by specifying a function handle, or you can fit a function to market data using functions of theIRFunctionCurveobject.

IRBootstrapOptions

TheIRBootstrapOptionsobject lets you specify options relating to the bootstrapping of anIRDataCurveobject.

IRFitOptions

TheIRFitOptionsobject lets you specify options relating to the fitting process for anIRFunctionCurveobject.

Workflow Using Interest-Rate Curve Objects

The supported workflow model for using interest-rate curve objects is:

  1. Create an interest-rate curve based on anIRDataCurveobject or anIRFunctionCurveobject.

    • To create anIRDataCurveobject:

      • Use vectors of dates and data with interpolation methods.

      • Use bootstrapping based on market instruments.

      For more information on creating anIRDataCurveobject, seeCreating an IRDataCurve Object.

    • To create anIRFunctionCurveobject:

      • Specify a function handle.

      • Fit a function using the Nelson-Siegel model, Svensson model, or smoothing spline model.

      • Fit a custom function.

  2. Use functions of theIRDataCurveorIRFunctionCurveobjects to extract forward, zero, discount factor, or par yield curves for the interest-rate curve object.

  3. Convert an interest-rate curve from anIRDataCurveorIRFunctionCurveobject to aRateSpecstructure. ThisRateSpecstructure is identical to theRateSpecproduced by the functionintenvset. Using theRateSpecfor an interest-rate curve object, you can then use Financial Instruments Toolbox functions to model an interest-rate structure and price. Alternatively, you can convert theRateSpecto aratecurveobject (seeConvert RateSpec to a ratecurve Object) and then use the Financial Instruments Toolbox object-based framework for pricing instruments.

See Also

|

Related Examples

More About