public class VolatilityIborCapFloorLegPricer extends Object
This function provides the ability to price ResolvedIborCapFloorLeg.
One must apply expand() in order to price IborCapFloorLeg.
The pricing methodologies are defined in individual implementations of the
volatilities, IborCapletFloorletVolatilities.
| Modifier and Type | Field and Description |
|---|---|
static VolatilityIborCapFloorLegPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
VolatilityIborCapFloorLegPricer(VolatilityIborCapletFloorletPeriodPricer periodPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
CurrencyAmount |
currentCash(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the current cash of the Ibor cap/floor leg.
|
IborCapletFloorletPeriodAmounts |
forwardRates(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider)
Calculates the forward rates for each caplet/floorlet of the Ibor cap/floor leg.
|
VolatilityIborCapletFloorletPeriodPricer |
getPeriodPricer()
Obtains the underlying period pricer.
|
IborCapletFloorletPeriodAmounts |
impliedVolatilities(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the implied volatilities for each caplet/floorlet of the Ibor cap/floor leg.
|
CurrencyAmount |
presentValue(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value of the Ibor cap/floor leg.
|
IborCapletFloorletPeriodCurrencyAmounts |
presentValueCapletFloorletPeriods(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value for each caplet/floorlet of the Ibor cap/floor leg.
|
CurrencyAmount |
presentValueDelta(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value delta of the Ibor cap/floor leg.
|
CurrencyAmount |
presentValueGamma(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value gamma of the Ibor cap/floor leg.
|
PointSensitivityBuilder |
presentValueSensitivityModelParamsVolatility(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value volatility sensitivity of the Ibor cap/floor leg.
|
PointSensitivityBuilder |
presentValueSensitivityRates(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value rates sensitivity of the Ibor cap/floor leg.
|
CurrencyAmount |
presentValueTheta(ResolvedIborCapFloorLeg capFloorLeg,
RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities)
Calculates the present value theta of the Ibor cap/floor leg.
|
protected void |
validate(RatesProvider ratesProvider,
IborCapletFloorletVolatilities volatilities) |
public static final VolatilityIborCapFloorLegPricer DEFAULT
public VolatilityIborCapFloorLegPricer(VolatilityIborCapletFloorletPeriodPricer periodPricer)
periodPricer - the pricer for IborCapletFloorletPeriod.public VolatilityIborCapletFloorletPeriodPricer getPeriodPricer()
public CurrencyAmount presentValue(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value of the leg is the value on the valuation date. The result is returned using the payment currency of the leg.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic IborCapletFloorletPeriodCurrencyAmounts presentValueCapletFloorletPeriods(ResolvedIborCapFloorLeg capFloorLeg, 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.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic CurrencyAmount presentValueDelta(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value delta of the leg is the sensitivity value on the valuation date. The result is returned using the payment currency of the leg.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic CurrencyAmount presentValueGamma(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value gamma of the leg is the sensitivity value on the valuation date. The result is returned using the payment currency of the leg.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic CurrencyAmount presentValueTheta(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value theta of the leg is the sensitivity value on the valuation date. The result is returned using the payment currency of the leg.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic PointSensitivityBuilder presentValueSensitivityRates(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value rates sensitivity of the leg is the sensitivity of the present value to the underlying curves.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic PointSensitivityBuilder presentValueSensitivityModelParamsVolatility(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
The present value volatility sensitivity of the leg is the sensitivity of the present value to the volatility values.
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic CurrencyAmount currentCash(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiespublic IborCapletFloorletPeriodAmounts forwardRates(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider)
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providerpublic IborCapletFloorletPeriodAmounts impliedVolatilities(ResolvedIborCapFloorLeg capFloorLeg, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
capFloorLeg - the Ibor cap/floor legratesProvider - the rates providervolatilities - the volatilitiesprotected void validate(RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.