CDSBlack
Create CDSBlack
pricer object for
CDSOption
instrument using CDSBlack
model
Since R2020a
Description
Create and price a CDSOption
instrument object with a
CDSBlack
model and a CDSBlack
pricing method
using this workflow:
Use
fininstrument
to create theCDSOption
instrument object. By default, this creates a single-name CDS option. You can create a CDS index option by specifying the optional name-value argumentAdjustedForwardSpread
.Use
finmodel
to specify theCDSBlack
model for theCDSOption
instrument object.Use
finpricer
to specify theCDSBlack
pricer object for theCDSOption
instrument object.
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
CDSOption
instrument, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a CDSBlackPricerObj
= finpricer(PricerType
,'DiscountCurve
',ratecurve_obj,'Model
',model,'DefaultProbabilityCurve
',defaultprobabilitycurve_obj)CDSBlack
pricer object by specifying
PricerType
and the required name-value pair
arguments for DiscountCurve
,
Model
, and DefaultProbabilityCurve
to set properties using
name-value pairs. For example, CDSBlackPricerObj =
finpricer("Analytic",'Model',CDSBlack,'DiscountCurve',ratecurve_obj,'DefaultProbabilityCurve',defaultprobabilitycurve_obj)
creates a CDSBlack
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