CDS
instrument object
Create and price a CDS
instrument object using this
workflow:
Use fininstrument
to create a CDS
instrument object.
Use defprobcurve
to
specify a default probability curve for the CDS
instrument.
Use finpricer
to
specify a Credit
pricing
method for the CDS
instrument.
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 models and pricing methods for a
CDS
instrument, see Choose Instruments, Models, and Pricers.
creates a CDSobj
= fininstrument(InstrumentType
,'Maturity
',maturity_date,'ContractSpread
',contractspread_value)CDS
object by specifying
InstrumentType
and sets the properties for the required
name-value pair arguments Maturity
and
ContractSpread
.
sets optional properties using additional
name-value pairs in addition to the required arguments in the previous
syntax. For example, CDSobj
= fininstrument(___,Name,Value
)CDSobj =
fininstrument("CDS",'Maturity',datetime(2019,1,30),'ContractSpread',200,'Period',4,'Basis',5,'BusinessDayConvention','follow','Name',"cds_instrument")
creates a CDS
instrument with contract spread of 200. You
can specify multiple name-value pair arguments.