public class HullWhiteSwaptionPhysicalTradePricer extends Object
Reference: Henrard, M. "The Irony in the derivatives discounting Part II: the crisis", Wilmott Journal, 2010, 2, 301-316
| Modifier and Type | Field and Description |
|---|---|
static HullWhiteSwaptionPhysicalTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
HullWhiteSwaptionPhysicalTradePricer() |
public static final HullWhiteSwaptionPhysicalTradePricer DEFAULT
public HullWhiteSwaptionPhysicalTradePricer()
public CurrencyAmount presentValue(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The result is expressed using the currency of the swapion.
trade - the swaption traderatesProvider - the rates providerhwProvider - the Hull-White model parameter tradepublic MultiCurrencyAmount currencyExposure(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
trade - the swaption traderatesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic CurrencyAmount currentCash(ResolvedSwaptionTrade trade, LocalDate valuationDate)
Only the premium is contributing to the current cash for non-cash settle swaptions.
trade - the swaption tradevaluationDate - the valuation datepublic PointSensitivities presentValueSensitivityRates(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The present value sensitivity of the product is the sensitivity of the present value to the underlying curves.
trade - the swaption traderatesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic DoubleArray presentValueSensitivityModelParamsHullWhite(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
trade - the swaption traderatesProvider - the rates providerhwProvider - the Hull-White model parameter providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.