FXDiscount
Description
Create and price a CurrencySwap instrument object with a
ratecurve and a FXDiscount pricing method
using this workflow:
Use
fininstrumentto create aCurrencySwapinstrument object.Create an interest-rate curve object using
ratecurve.Use
finpricerto specify aFXDiscountpricer object for theCurrencySwapinstrument 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 FXDiscountPricerObj = 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
Name-Value Arguments
Output Arguments
Properties
Object Functions
price | Compute price for CurrencySwap instrument with
FXDiscount pricer |
Examples
Version History
Introduced in R2024a