public class HullWhiteIborFutureProductPricer extends Object
This function provides the ability to price a IborFuture based on
Hull-White one-factor model with piecewise constant volatility.
Reference: Henrard M., Eurodollar Futures and Options: Convexity Adjustment in HJM One-Factor Model. March 2005. Available at http://ssrn.com/abstract=682343
(100 - percentRate).
Strata uses decimal prices for Ibor futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.
| Modifier and Type | Field and Description |
|---|---|
static HullWhiteIborFutureProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
HullWhiteIborFutureProductPricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
convexityAdjustment(ResolvedIborFuture future,
RatesProvider ratesProvider,
HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the convexity adjustment (to the price) of the Ibor future product.
|
double |
parRate(ResolvedIborFuture future,
RatesProvider ratesProvider,
HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the par rate of the Ibor future product.
|
double |
price(ResolvedIborFuture future,
RatesProvider ratesProvider,
HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the price of the Ibor future product.
|
DoubleArray |
priceSensitivityModelParamsHullWhite(ResolvedIborFuture future,
RatesProvider ratesProvider,
HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the price sensitivity to piecewise constant volatility parameters of the Hull-White model.
|
PointSensitivities |
priceSensitivityRates(ResolvedIborFuture future,
RatesProvider ratesProvider,
HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
Calculates the price sensitivity of the Ibor future product.
|
public static final HullWhiteIborFutureProductPricer DEFAULT
public HullWhiteIborFutureProductPricer()
public double price(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The price of the product is the price on the valuation date.
future - the futureratesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic double convexityAdjustment(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The convexity adjustment of the product is the value on the valuation date.
future - the futureratesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic double parRate(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The par rate is given by (1 - price).
The par rate of the product is the value on the valuation date.
future - the futureratesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic PointSensitivities priceSensitivityRates(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
The price sensitivity of the product is the sensitivity of the price to the underlying curves.
future - the futureratesProvider - the rates providerhwProvider - the Hull-White model parameter providerpublic DoubleArray priceSensitivityModelParamsHullWhite(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)
future - the futureratesProvider - 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.