Discount
Create Discount
pricer object for Deposit
,
FRA
, Swap
, FixedBond
,
FloatBond
, OISFuture
,
STIRFuture
, and OvernightIndexedSwap
using
ratecurve
object
Since R2020a
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
fininstrument
to create aDeposit
,FRA
,Swap
,FixedBond
,FloatBond
,STIRFuture
,OISFuture
, orOvernightIndexedSwap
instrument object.Create an interest-rate curve object using
ratecurve
.Use
finpricer
to specify aDiscount
pricer object for theDeposit
,FRA
,Swap
,FixedBond
,FloatBond
,STIRFuture
,OISFuture
, orOvernightIndexedSwap
instrument object.Note
If you do not specify
ProjectionCurve
when you create aSwap
orFloatBond
instrument with theDiscount
pricer, theProjectionCurve
value defaults to theDiscountCurve
value.
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
Properties
Object Functions
price | Compute price for interest-rate instrument with Discount
pricer |
Examples
Version History
Introduced in R2020a