HullWhite
Create HullWhite
pricer object for Cap
,
Floor
, or Swaption
instrument using
HullWhite
model
Since R2020a
Description
Create and price a Cap
, Floor
, or
Swaption
instrument object with a HullWhite
model and a HullWhite
pricing method using this
workflow:
Use
fininstrument
to create aCap
,Floor
, orSwaption
instrument object.Use
finmodel
to specify theHullWhite
model for theCap
,Floor
, orSwaption
instrument object.Use
finpricer
to specify theHullWhite
pricer object for theCap
,Floor
, orSwaption
instrument object.Note
If you do not specify
ProjectionCurve
when you create aCap
,Floor
, orSwaption
instrument with theHullWhite
pricer, theProjectionCurve
value defaults to theDiscountCurve
value.
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
Properties
Object Functions
price | Compute price for interest-rate, equity, or credit derivative instrument with
Analytic pricer |
Examples
Version History
Introduced in R2020a