FXDiscount
Description
Create and price a CurrencySwap
instrument object with a
ratecurve
and a FXDiscount
pricing method
using this workflow:
Use
fininstrument
to create aCurrencySwap
instrument object.Create an interest-rate curve object using
ratecurve
.Use
finpricer
to specify aFXDiscount
pricer object for theCurrencySwap
instrument object.
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 supported instruments, see Choose Instruments, Models, and Pricers.
Creation
Description
creates a DiscountPricerObj
= finpricer(PricerType
,DiscountCurve
=ratecurve_objects,FXRate
=FX_rates)FXDiscount
pricer object by specifying
PricerType
and the required name-value arguments
DiscountCurve
and FXRate
to
set properties
using name-value arguments. For example, FXDiscountPricerObj =
finpricer("FXDiscount",DiscountCurve=[ZeroCurve_EUR
ZeroCurve_USD],FXRate=[1 1.1])
creates a
FXDiscount
pricer object.
Input Arguments
Properties
Object Functions
price | Compute price for CurrencySwap instrument with
FXDiscount pricer |
Examples
Version History
Introduced in R2024a