public class SabrExtrapolationReplicationCmsTradePricer extends Object
This function provides the ability to price ResolvedCmsTrade.
| Constructor and Description |
|---|
SabrExtrapolationReplicationCmsTradePricer(SabrExtrapolationReplicationCmsProductPricer cmsProductPricer)
Creates an instance using the default payment pricer.
|
SabrExtrapolationReplicationCmsTradePricer(SabrExtrapolationReplicationCmsProductPricer cmsProductPricer,
DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the currency exposure of the trade.
|
MultiCurrencyAmount |
currentCash(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the current cash of the trade.
|
ExplainMap |
explainPresentValue(ResolvedCms cms,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Explains the present value of the CMS trade.
|
MultiCurrencyAmount |
presentValue(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value of the CMS trade.
|
PointSensitivities |
presentValueSensitivityModelParamsSabr(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the SABR model parameters.
|
PointSensitivities |
presentValueSensitivityRates(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value curve sensitivity of the CMS trade.
|
double |
presentValueSensitivityStrike(ResolvedCmsTrade trade,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the strike value.
|
public SabrExtrapolationReplicationCmsTradePricer(SabrExtrapolationReplicationCmsProductPricer cmsProductPricer)
cmsProductPricer - the pricer for CmsLegpublic SabrExtrapolationReplicationCmsTradePricer(SabrExtrapolationReplicationCmsProductPricer cmsProductPricer, DiscountingPaymentPricer paymentPricer)
cmsProductPricer - the pricer for ResolvedCmspaymentPricer - the pricer for Paymentpublic MultiCurrencyAmount presentValue(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value of the trade is the value on the valuation date.
trade - the CMS traderatesProvider - 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 PointSensitivities presentValueSensitivityRates(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
trade - the CMS traderatesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic PointSensitivities presentValueSensitivityModelParamsSabr(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the trade is the sensitivity of the present value to the SABR model parameters, alpha, beta, rho and nu.
trade - the CMS traderatesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic double presentValueSensitivityStrike(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity of the trade is the sensitivity of the present value to the strike value.
trade - the CMS traderatesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic MultiCurrencyAmount currencyExposure(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
trade - the CMS traderatesProvider - the rates providerswaptionVolatilities - the swaption volatilitiespublic MultiCurrencyAmount currentCash(ResolvedCmsTrade trade, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
trade - the CMS traderatesProvider - 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.