public class VolatilityIborCapFloorProductPricer extends Object
This function provides the ability to price ResolvedIborCapFloor.
The pricing methodologies are defined in individual implementations of the
volatilities, IborCapletFloorletVolatilities.
| Modifier and Type | Field and Description |
|---|---|
static VolatilityIborCapFloorProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
VolatilityIborCapFloorProductPricer(VolatilityIborCapFloorLegPricer capFloorLegPricer,
DiscountingSwapLegPricer payLegPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the currency exposure of the Ibor cap/floor product.
|
MultiCurrencyAmount |
currentCash(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the current cash of the Ibor cap/floor product.
|
IborCapletFloorletPeriodAmounts |
forwardRates(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider)
Calculates the forward rates for each caplet/floorlet of the Ibor cap/floor.
|
protected DiscountingSwapLegPricer |
getPayLegPricer()
Gets the pay leg pricer.
|
IborCapletFloorletPeriodAmounts |
impliedVolatilities(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the implied volatilities for each caplet/floorlet of the Ibor cap/floor.
|
MultiCurrencyAmount |
presentValue(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value of the Ibor cap/floor product.
|
IborCapletFloorletPeriodCurrencyAmounts |
presentValueCapletFloorletPeriods(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value for each caplet/floorlet of the Ibor cap/floor product.
|
MultiCurrencyAmount |
presentValueDelta(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value delta of the Ibor cap/floor product.
|
MultiCurrencyAmount |
presentValueGamma(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value gamma of the Ibor cap/floor product.
|
PointSensitivityBuilder |
presentValueSensitivityModelParamsVolatility(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value volatility sensitivity of the Ibor cap/floor product.
|
PointSensitivityBuilder |
presentValueSensitivityRates(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value rates sensitivity of the Ibor cap/floor product.
|
MultiCurrencyAmount |
presentValueTheta(ResolvedIborCapFloor capFloor,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value theta of the Ibor cap/floor product.
|
public static final VolatilityIborCapFloorProductPricer DEFAULT
public VolatilityIborCapFloorProductPricer(VolatilityIborCapFloorLegPricer capFloorLegPricer, DiscountingSwapLegPricer payLegPricer)
capFloorLegPricer - the pricer for IborCapFloorLegpayLegPricer - the pricer for SwapLegprotected DiscountingSwapLegPricer getPayLegPricer()
public MultiCurrencyAmount presentValue(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of the product is the value on the valuation date.
The cap/floor leg and pay leg are typically in the same currency, thus the present value gamma is expressed as a single currency amount in most cases.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic IborCapletFloorletPeriodCurrencyAmounts presentValueCapletFloorletPeriods(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of each caplet/floorlet is the value on the valuation date. The result is returned using the payment currency of the leg.
The present value will not be calculated for the pay leg if the product has one.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic MultiCurrencyAmount presentValueDelta(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of the product is the sensitivity value on the valuation date.
The cap/floor leg and pay leg are typically in the same currency, thus the present value gamma is expressed as a single currency amount in most cases.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic MultiCurrencyAmount presentValueGamma(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of the product is the sensitivity value on the valuation date.
The cap/floor leg and pay leg are typically in the same currency, thus the present value gamma is expressed as a single currency amount in most cases.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic MultiCurrencyAmount presentValueTheta(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of the product is the sensitivity value on the valuation date.
The cap/floor leg and pay leg are typically in the same currency, thus the present value gamma is expressed as a single currency amount in most cases.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic PointSensitivityBuilder presentValueSensitivityRates(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value rates sensitivity of the product is the sensitivity of the present value to the underlying curves.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic PointSensitivityBuilder presentValueSensitivityModelParamsVolatility(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value volatility sensitivity of the product is the sensitivity of the present value to the volatility values.
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic MultiCurrencyAmount currencyExposure(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic MultiCurrencyAmount currentCash(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
capFloor - the Ibor cap/floor productratesProvider - the rates providervolatilities - the volatilitiespublic IborCapletFloorletPeriodAmounts forwardRates(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider)
capFloor - the Ibor cap/floorratesProvider - the rates providerpublic IborCapletFloorletPeriodAmounts impliedVolatilities(ResolvedIborCapFloor capFloor, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
capFloor - the Ibor cap/floorratesProvider - the rates providervolatilities - the volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.