public class SabrExtrapolationReplicationCmsLegPricer extends Object
This function provides the ability to price ResolvedCmsLeg.
One must apply resolved() in order to price CmsLeg.
| Constructor and Description |
|---|
SabrExtrapolationReplicationCmsLegPricer(SabrExtrapolationReplicationCmsPeriodPricer cmsPeriodPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
CurrencyAmount |
currentCash(ResolvedCmsLeg cmsLeg,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the current cash of the leg.
|
ExplainMap |
explainPresentValue(ResolvedCmsLeg cmsLeg,
RatesProvider provider,
SabrSwaptionVolatilities volatilities)
Explains the present value of a CMS leg.
|
CurrencyAmount |
presentValue(ResolvedCmsLeg cmsLeg,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value of the CMS leg.
|
PointSensitivityBuilder |
presentValueSensitivityModelParamsSabr(ResolvedCmsLeg cmsLeg,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the SABR model parameters.
|
PointSensitivityBuilder |
presentValueSensitivityRates(ResolvedCmsLeg cmsLeg,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value curve sensitivity of the CMS leg.
|
double |
presentValueSensitivityStrike(ResolvedCmsLeg cmsLeg,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the strike value.
|
public SabrExtrapolationReplicationCmsLegPricer(SabrExtrapolationReplicationCmsPeriodPricer cmsPeriodPricer)
cmsPeriodPricer - the pricer for CmsPeriodpublic CurrencyAmount presentValue(ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value of the leg is the value on the valuation date. The result is returned using the payment currency of the leg.
cmsLeg - the CMS legratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic ExplainMap explainPresentValue(ResolvedCmsLeg cmsLeg, RatesProvider provider, SabrSwaptionVolatilities volatilities)
This returns explanatory information about the calculation.
cmsLeg - the CMS legprovider - the rates providervolatilities - the swaption volatilitiespublic PointSensitivityBuilder presentValueSensitivityRates(ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the leg is the sensitivity of the present value to the underlying curves.
cmsLeg - the CMS legratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic PointSensitivityBuilder presentValueSensitivityModelParamsSabr(ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the leg is the sensitivity of the present value to the SABR model parameters, alpha, beta, rho and nu.
cmsLeg - the CMS legratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic double presentValueSensitivityStrike(ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the leg 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.
cmsLeg - the CMS legratesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic CurrencyAmount currentCash(ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
cmsLeg - the CMS legratesProvider - 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.