ratecurve
Create ratecurve object for interest-rate curve from dates
and data
Description
Build a ratecurve object using
ratecurve.
After creating a ratecurve object, you can use the associated
object functions forwardrates, discountfactors, and
zerorates.
Note
If you have the RateSpec obtained previously from
intenvset or toRateSpec for an IRDataCurve or toRateSpec for an IRFunctionCurve, refer to
Convert RateSpec to a ratecurve Object.
To price a Swap, FixedBond, FloatBond, FRA, or Deposit instrument, you
must create a ratecurve object and then create Discount pricer
object.
For more detailed 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, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a ratecurve_obj = ratecurve(___,Name,Value)ratecurve object using name-value pairs and any
of the arguments in the previous syntax. For example, myRC =
ratecurve("zero",Settle,ZeroDates,ZeroRates,'Compounding',2,'Basis',5,'InterpMethod',"pchip",'ShortExtrapMethod',"linear",'LongExtrapMethod',"cubic")
creates a ratecurve object for a zero curve. You can
specify multiple name-value pair arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
forwardrates | Calculate forward rates for ratecurve object |
discountfactors | Calculate discount factors for a ratecurve object |
zerorates | Calculate zero rates for ratecurve object |
irbootstrap | Bootstrap interest-rate curve from market data |