ratecurve
R2026bCreate 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 interest-rate term structure obtained previously from the
or intenvsettoRateSpec function for an
IRDataCurve or IRFunctionCurve object,
refer to Workflow for Creating and Analyzing a ratecurve and parametercurve.
To price a Swap, FixedBond, FloatBond, FRA, or Deposit instrument, you
must create a ratecurve object and then create a 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 |
