Class VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer
- java.lang.Object
- 
- com.opengamma.strata.pricer.capfloor.VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer
 
- 
 public class VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer 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 VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricerDEFAULTDefault implementation.
 - 
Constructor SummaryConstructors Constructor Description VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer(SabrOvernightInArrearsCapletFloorletPeriodPricer capletPricer, double spread)Creates an instance.
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer DEFAULT Default implementation.
 
- 
 - 
Constructor Detail- 
VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricerpublic VerticalSpreadSabrOvernightInArrearsCapletFloorletBinaryPeriodPricer(SabrOvernightInArrearsCapletFloorletPeriodPricer capletPricer, double spread) Creates an instance.- Parameters:
- capletPricer- the pricer for- OvernightInArrearsCapletFloorletPeriod
- spread- the spread between the approximating options strikes
 
 
- 
 - 
Method Detail- 
presentValuepublic CurrencyAmount presentValue(OvernightInArrearsCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, SabrParametersIborCapletFloorletVolatilities sabrVolatilities) Calculates the present value of the binary caplet/floorlet period.- Parameters:
- period- the Ibor caplet/floorlet period
- ratesProvider- the rates provider
- sabrVolatilities- the SABR parameters
- Returns:
- the present value
 
 - 
presentValueSensitivityRatesStickyModelpublic PointSensitivityBuilder presentValueSensitivityRatesStickyModel(OvernightInArrearsCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, SabrParametersIborCapletFloorletVolatilities sabrVolatilities) 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
- sabrVolatilities- the SABR parameters
- Returns:
- the present value curve sensitivity
 
 - 
presentValueSensitivityModelParamsSabrpublic PointSensitivityBuilder presentValueSensitivityModelParamsSabr(OvernightInArrearsCapletFloorletBinaryPeriod period, RatesProvider ratesProvider, SabrParametersIborCapletFloorletVolatilities sabrVolatilities) 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
- sabrVolatilities- the SABR parameters
- Returns:
- the present value curve sensitivity
 
 - 
vanillaOptionVerticalSpreadPairpublic Pair<OvernightInArrearsCapletFloorletPeriod,OvernightInArrearsCapletFloorletPeriod> vanillaOptionVerticalSpreadPair(OvernightInArrearsCapletFloorletBinaryPeriod binary) Creates pair of vanilla caplet for binary caplet/floorlet pricing by call spread.- Parameters:
- binary- the binary caplet/floorlet
- Returns:
- the call spread
 
 
- 
 
-