public class DiscountingCmsProductPricer extends Object
This is an overly simplistic approach to CMS coupon pricer. It is provided only for testing and comparison purposes. It is not recommended to use this for valuation or risk management purposes.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingCmsProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingCmsProductPricer(DiscountingSwapProductPricer swapPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedCms cms,
RatesProvider ratesProvider)
Calculates the currency exposure of the product.
|
MultiCurrencyAmount |
currentCash(ResolvedCms cms,
RatesProvider ratesProvider)
Calculates the current cash of the product.
|
MultiCurrencyAmount |
presentValue(ResolvedCms cms,
RatesProvider ratesProvider)
Calculates the present value of the CMS product by simple forward estimation.
|
PointSensitivityBuilder |
presentValueSensitivity(ResolvedCms cms,
RatesProvider ratesProvider)
Calculates the present value curve sensitivity of the CMS product by simple forward estimation.
|
public static final DiscountingCmsProductPricer DEFAULT
public DiscountingCmsProductPricer(DiscountingSwapProductPricer swapPricer)
swapPricer - the pricer for Swappublic MultiCurrencyAmount presentValue(ResolvedCms cms, RatesProvider ratesProvider)
cms - the CMS productratesProvider - the rates providerpublic PointSensitivityBuilder presentValueSensitivity(ResolvedCms cms, RatesProvider ratesProvider)
The present value sensitivity of the product is the sensitivity of the present value to the underlying curves.
cms - the CMS productratesProvider - the rates providerpublic MultiCurrencyAmount currencyExposure(ResolvedCms cms, RatesProvider ratesProvider)
cms - the CMS productratesProvider - the rates providerpublic MultiCurrencyAmount currentCash(ResolvedCms cms, RatesProvider ratesProvider)
cms - the CMS productratesProvider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.