Class VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer
- java.lang.Object
-
- com.opengamma.strata.pricer.capfloor.VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer
-
public class VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer extends Object
Pricer for binary caplet/floorlet based on volatilities.The pricing methodologies is based on 'call spread' approach.
The value of the caplet/floorlet after expiry is a fixed payoff amount. The value is zero if valuation date is after payment date of the caplet/floorlet.
-
-
Field Summary
Fields Modifier and Type Field Description static VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer
DEFAULT
Default implementation.
-
Constructor Summary
Constructors Constructor Description VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer(VolatilityIborCapletFloorletPeriodPricer capletPricer, double spread)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyAmount
presentValue(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value of the binary caplet/floorlet period.PointSensitivityBuilder
presentValueSensitivityModelParamsVolatility(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value sensitivity to model parameters of the binary caplet/floorlet period.PointSensitivityBuilder
presentValueSensitivityRatesStickyStrike(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value rates sensitivity of the binary caplet/floorlet period.Pair<IborCapletFloorletPeriod,IborCapletFloorletPeriod>
vanillaOptionVerticalSpreadPair(IborCapletFloorletBinaryPeriod binary)
Creates pair of vanilla caplet for binary caplet/floorlet pricing by call spread.
-
-
-
Field Detail
-
DEFAULT
public static final VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer DEFAULT
Default implementation.
-
-
Constructor Detail
-
VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer
public VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer(VolatilityIborCapletFloorletPeriodPricer capletPricer, double spread)
Creates an instance.- Parameters:
capletPricer
- the pricer forIborCapletFloorletPeriod
spread
- the spread between the approximating options strikes
-
-
Method Detail
-
presentValue
public CurrencyAmount presentValue(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value of the binary caplet/floorlet period.- Parameters:
period
- the Ibor caplet/floorlet periodratesProvider
- the rates providervolatilities
- the volatilities- Returns:
- the present value
-
presentValueSensitivityRatesStickyStrike
public PointSensitivityBuilder presentValueSensitivityRatesStickyStrike(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value rates sensitivity of the binary caplet/floorlet period.The present value rates sensitivity of the caplet/floorlet is the sensitivity of the present value to the underlying curves.
- Parameters:
period
- the Ibor caplet/floorlet periodratesProvider
- the rates providervolatilities
- the volatilities- Returns:
- the present value curve sensitivity
-
presentValueSensitivityModelParamsVolatility
public PointSensitivityBuilder presentValueSensitivityModelParamsVolatility(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)
Calculates the present value sensitivity to model parameters of the binary caplet/floorlet period.The present value rates sensitivity of the caplet/floorlet is the sensitivity of the present value to the underlying curves.
- Parameters:
period
- the Ibor caplet/floorlet periodratesProvider
- the rates providervolatilities
- the volatilities- Returns:
- the present value curve sensitivity
-
vanillaOptionVerticalSpreadPair
public Pair<IborCapletFloorletPeriod,IborCapletFloorletPeriod> vanillaOptionVerticalSpreadPair(IborCapletFloorletBinaryPeriod binary)
Creates pair of vanilla caplet for binary caplet/floorlet pricing by call spread.- Parameters:
binary
- the binary caplet/floorlet- Returns:
- the call spread
-
-