Class HullWhiteSwaptionPhysicalProductPricer
- java.lang.Object
-
- com.opengamma.strata.pricer.swaption.HullWhiteSwaptionPhysicalProductPricer
-
public class HullWhiteSwaptionPhysicalProductPricer extends Object
Pricer for swaption with physical settlement in Hull-White one factor model with piecewise constant volatility.Reference: Henrard, M. "The Irony in the derivatives discounting Part II: the crisis", Wilmott Journal, 2010, 2, 301-316
-
-
Field Summary
Fields Modifier and Type Field Description static HullWhiteSwaptionPhysicalProductPricer
DEFAULT
Default implementation.
-
Constructor Summary
Constructors Constructor Description HullWhiteSwaptionPhysicalProductPricer(DiscountingPaymentPricer paymentPricer)
Creates an instance.
-
Method Summary
-
-
-
Field Detail
-
DEFAULT
public static final HullWhiteSwaptionPhysicalProductPricer DEFAULT
Default implementation.
-
-
Constructor Detail
-
HullWhiteSwaptionPhysicalProductPricer
public HullWhiteSwaptionPhysicalProductPricer(DiscountingPaymentPricer paymentPricer)
Creates an instance.- Parameters:
paymentPricer
- the pricer forPayment
-
-
Method Detail
-
presentValue
public CurrencyAmount presentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the present value of the swaption product.The result is expressed using the currency of the swapion.
- Parameters:
swaption
- the productratesProvider
- the rates providerhwProvider
- the Hull-White model parameter provider- Returns:
- the present value
-
currencyExposure
public MultiCurrencyAmount currencyExposure(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the currency exposure of the swaption product.- Parameters:
swaption
- the productratesProvider
- the rates providerhwProvider
- the Hull-White model parameter provider- Returns:
- the currency exposure
-
presentValueSensitivityRates
public PointSensitivityBuilder presentValueSensitivityRates(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the present value sensitivity of the swaption product.The present value sensitivity of the product is the sensitivity of the present value to the underlying curves.
- Parameters:
swaption
- the productratesProvider
- the rates providerhwProvider
- the Hull-White model parameter provider- Returns:
- the point sensitivity to the rate curves
-
presentValueSensitivityModelParamsHullWhite
public DoubleArray presentValueSensitivityModelParamsHullWhite(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the present value sensitivity to piecewise constant volatility parameters of the Hull-White model.- Parameters:
swaption
- the productratesProvider
- the rates providerhwProvider
- the Hull-White model parameter provider- Returns:
- the present value Hull-White model parameter sensitivity of the swaption product
-
-