Discount
Create Discount pricer object for Deposit,
FRA, Swap, FixedBond,
FloatBond, OISFuture,
STIRFuture, and OvernightIndexedSwap using
ratecurve object
Description
Create and price a Deposit, FRA,
Swap, FixedBond, FloatBond,
OISFuture, STIRFuture, and
OvernightIndexedSwap instrument object with a
ratecurve and a Discount pricing method using
this workflow:
Use
fininstrumentto create aDeposit,FRA,Swap,FixedBond,FloatBond,STIRFuture,OISFuture, orOvernightIndexedSwapinstrument object.Create an interest-rate curve object using
ratecurve.Use
finpricerto specify aDiscountpricer object for theDeposit,FRA,Swap,FixedBond,FloatBond,STIRFuture,OISFuture, orOvernightIndexedSwapinstrument object.Note
If you do not specify
ProjectionCurvewhen you create aSwaporFloatBondinstrument with theDiscountpricer, theProjectionCurvevalue defaults to theDiscountCurvevalue.
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
Deposit, FRA, Swap,
FixedBond, or FloatBond instrument, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a DiscountPricerObj = finpricer(PricerType,'DiscountCurve',ratecurve_object)Discount pricer object by specifying
PricerType and the required name-value pair
argument DiscountCurve to set properties using
name-value pairs. For example, DiscountPricerObj =
finpricer("Discount",'DiscountCurve',ratecurve_obj) creates a
Discount pricer object.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
price | Compute price for interest-rate instrument with Discount
pricer |
Examples
Version History
Introduced in R2020a