Package com.opengamma.strata.pricer.fx
Class DiscountingFxNdfProductPricer
- java.lang.Object
-
- com.opengamma.strata.pricer.fx.DiscountingFxNdfProductPricer
-
public class DiscountingFxNdfProductPricer extends Object
Pricer for FX non-deliverable forward (NDF) products.This provides the ability to price an
ResolvedFxNdf
. The product is priced using forward curves for the currency pair.
-
-
Field Summary
Fields Modifier and Type Field Description static DiscountingFxNdfProductPricer
DEFAULT
Default implementation.
-
Constructor Summary
Constructors Constructor Description DiscountingFxNdfProductPricer()
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiCurrencyAmount
currencyExposure(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the currency exposure by discounting each payment in its own currency.CurrencyAmount
currentCash(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the current cash of the NDF product.FxRate
forwardFxRate(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the forward exchange rate.CurrencyAmount
presentValue(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the present value of the NDF product.PointSensitivities
presentValueSensitivity(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the present value curve sensitivity of the NDF product.
-
-
-
Field Detail
-
DEFAULT
public static final DiscountingFxNdfProductPricer DEFAULT
Default implementation.
-
-
Method Detail
-
presentValue
public CurrencyAmount presentValue(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the present value of the NDF product.The present value of the product is the value on the valuation date. The present value is returned in the settlement currency.
- Parameters:
ndf
- the productprovider
- the rates provider- Returns:
- the present value of the product in the settlement currency
-
presentValueSensitivity
public PointSensitivities presentValueSensitivity(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the present value curve sensitivity of the NDF product.The present value sensitivity of the product is the sensitivity of the present value to the underlying curves.
- Parameters:
ndf
- the productprovider
- the rates provider- Returns:
- the point sensitivity of the present value
-
currencyExposure
public MultiCurrencyAmount currencyExposure(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the currency exposure by discounting each payment in its own currency.- Parameters:
ndf
- the productprovider
- the rates provider- Returns:
- the currency exposure
-
currentCash
public CurrencyAmount currentCash(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the current cash of the NDF product.- Parameters:
ndf
- the productprovider
- the rates provider- Returns:
- the current cash of the product in the settlement currency
-
forwardFxRate
public FxRate forwardFxRate(ResolvedFxNdf ndf, RatesProvider provider)
Calculates the forward exchange rate.- Parameters:
ndf
- the productprovider
- the rates provider- Returns:
- the forward rate
-
-