public class DiscountingCmsTradePricer 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 DiscountingCmsTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingCmsTradePricer(DiscountingSwapProductPricer swapPricer,
DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedCmsTrade trade,
RatesProvider ratesProvider)
Calculates the currency exposure of the trade.
|
MultiCurrencyAmount |
currentCash(ResolvedCmsTrade trade,
RatesProvider ratesProvider)
Calculates the current cash of the trade.
|
MultiCurrencyAmount |
presentValue(ResolvedCmsTrade trade,
RatesProvider ratesProvider)
Calculates the present value of the CMS trade by simple forward estimation.
|
PointSensitivities |
presentValueSensitivity(ResolvedCmsTrade trade,
RatesProvider ratesProvider)
Calculates the present value curve sensitivity of the CMS trade by simple forward estimation.
|
public static final DiscountingCmsTradePricer DEFAULT
public DiscountingCmsTradePricer(DiscountingSwapProductPricer swapPricer, DiscountingPaymentPricer paymentPricer)
public MultiCurrencyAmount presentValue(ResolvedCmsTrade trade, RatesProvider ratesProvider)
trade - the CMS traderatesProvider - the rates providerpublic PointSensitivities presentValueSensitivity(ResolvedCmsTrade trade, RatesProvider ratesProvider)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
trade - the CMS traderatesProvider - the rates providerpublic MultiCurrencyAmount currencyExposure(ResolvedCmsTrade trade, RatesProvider ratesProvider)
trade - the CMS traderatesProvider - the rates providerpublic MultiCurrencyAmount currentCash(ResolvedCmsTrade trade, RatesProvider ratesProvider)
trade - the CMS traderatesProvider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.