public class SabrExtrapolationReplicationCmsProductPricer extends Object
This function provides the ability to price ResolvedCms.
| Constructor and Description |
|---|
SabrExtrapolationReplicationCmsProductPricer(SabrExtrapolationReplicationCmsLegPricer cmsLegPricer)
Creates an instance using the default pay leg pricer.
|
SabrExtrapolationReplicationCmsProductPricer(SabrExtrapolationReplicationCmsLegPricer cmsLegPricer,
DiscountingSwapLegPricer payLegPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the currency exposure of the product.
|
MultiCurrencyAmount |
currentCash(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the current cash of the product.
|
ExplainMap |
explainPresentValue(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Explains the present value of the CMS product.
|
MultiCurrencyAmount |
presentValue(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value of the CMS product.
|
PointSensitivityBuilder |
presentValueSensitivityModelParamsSabr(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the SABR model parameters.
|
PointSensitivityBuilder |
presentValueSensitivityRates(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value curve sensitivity of the CMS product.
|
double |
presentValueSensitivityStrike(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the strike value.
|
public SabrExtrapolationReplicationCmsProductPricer(SabrExtrapolationReplicationCmsLegPricer cmsLegPricer)
cmsLegPricer - the pricer for CmsLegpublic SabrExtrapolationReplicationCmsProductPricer(SabrExtrapolationReplicationCmsLegPricer cmsLegPricer, DiscountingSwapLegPricer payLegPricer)
public MultiCurrencyAmount presentValue(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value of the product is the value on the valuation date.
CMS leg and pay leg are typically in the same currency. Thus the present value is expressed as a single currency amount in most cases.
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic ExplainMap explainPresentValue(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
This returns explanatory information about the calculation.
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic PointSensitivityBuilder presentValueSensitivityRates(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the product is the sensitivity of the present value to the underlying curves.
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic PointSensitivityBuilder presentValueSensitivityModelParamsSabr(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the product is the sensitivity of the present value to the SABR model parameters, alpha, beta, rho and nu.
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic double presentValueSensitivityStrike(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the product is the sensitivity of the present value to the strike value. This is not relevant for CMS coupons and an exception is thrown in the underlying pricer.
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic MultiCurrencyAmount currencyExposure(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic MultiCurrencyAmount currentCash(ResolvedCms cms, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
cms - the CMS productratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.