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 SummaryFields Modifier and Type Field Description static VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricerDEFAULTDefault implementation.
 - 
Constructor SummaryConstructors Constructor Description VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer(VolatilityIborCapletFloorletPeriodPricer capletPricer, double spread)Creates an instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyAmountpresentValue(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)Calculates the present value of the binary caplet/floorlet period.PointSensitivityBuilderpresentValueSensitivityModelParamsVolatility(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities)Calculates the present value sensitivity to model parameters of the binary caplet/floorlet period.PointSensitivityBuilderpresentValueSensitivityRatesStickyStrike(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- 
DEFAULTpublic static final VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer DEFAULT Default implementation.
 
- 
 - 
Constructor Detail- 
VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricerpublic VerticalSpreadVolatilityIborCapletFloorletBinaryPeriodPricer(VolatilityIborCapletFloorletPeriodPricer capletPricer, double spread) Creates an instance.- Parameters:
- capletPricer- the pricer for- IborCapletFloorletPeriod
- spread- the spread between the approximating options strikes
 
 
- 
 - 
Method Detail- 
presentValuepublic CurrencyAmount presentValue(IborCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, IborCapletFloorletVolatilities volatilities) Calculates the present value of the binary caplet/floorlet period.- Parameters:
- period- the Ibor caplet/floorlet period
- ratesProvider- the rates provider
- volatilities- the volatilities
- Returns:
- the present value
 
 - 
presentValueSensitivityRatesStickyStrikepublic 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 period
- ratesProvider- the rates provider
- volatilities- the volatilities
- Returns:
- the present value curve sensitivity
 
 - 
presentValueSensitivityModelParamsVolatilitypublic 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 period
- ratesProvider- the rates provider
- volatilities- the volatilities
- Returns:
- the present value curve sensitivity
 
 - 
vanillaOptionVerticalSpreadPairpublic 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
 
 
- 
 
-