HullWhite
Create HullWhite pricer object for Cap,
Floor, or Swaption instrument using
HullWhite model
Description
Create and price a Cap, Floor, or
Swaption instrument object with a HullWhite
model and a HullWhite pricing method using this
workflow:
Use
fininstrumentto create aCap,Floor, orSwaptioninstrument object.Use
finmodelto specify theHullWhitemodel for theCap,Floor, orSwaptioninstrument object.Use
finpricerto specify theHullWhitepricer object for theCap,Floor, orSwaptioninstrument object.Note
If you do not specify
ProjectionCurvewhen you create aCap,Floor, orSwaptioninstrument with theHullWhitepricer, theProjectionCurvevalue defaults to theDiscountCurvevalue.
For more information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available instruments, models, and pricing methods for a
Cap, Floor, or Swaption
instrument, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a HullWhitePricerObj = finpricer(PricerType,'DiscountCurve',ratecurve_obj,'Model',model)HullWhite pricer object by specifying
PricerType and the required name-value pair
arguments DiscountCurve and Model
to set properties using
name-value pairs. For example, HullWhitePricerObj =
finpricer("Analytic",'DiscountCurve',ratecurve_obj,'Model',HWModel)
creates a HullWhite pricer object.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
price | Compute price for interest-rate, equity, or credit derivative instrument with
Analytic pricer |
Examples
More About
Version History
Introduced in R2020a