public class SabrSwaptionCashParYieldProductPricer extends VolatilitySwaptionCashParYieldProductPricer
The swap underlying the swaption must have a fixed leg on which the forward rate is computed. The underlying swap must be single currency.
The volatility parameters are not adjusted for the underlying swap convention. The volatilities from the provider are taken as such.
The value of the swaption after expiry is 0. For a swaption which already expired, negative number is returned by
the method, SwaptionVolatilities.relativeTime(ZonedDateTime).
| Modifier and Type | Field and Description |
|---|---|
static SabrSwaptionCashParYieldProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
SabrSwaptionCashParYieldProductPricer(DiscountingSwapProductPricer swapPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
PointSensitivityBuilder |
presentValueSensitivityModelParamsSabr(ResolvedSwaption swaption,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity to the SABR model parameters of the swaption product.
|
PointSensitivityBuilder |
presentValueSensitivityRatesStickyModel(ResolvedSwaption swaption,
RatesProvider ratesProvider,
SabrSwaptionVolatilities swaptionVolatilities)
Calculates the present value sensitivity of the swaption product to the rate curves.
|
calculateNumeraire, calculateStrike, currencyExposure, fixedLeg, forwardRate, getSwapPricer, impliedVolatility, presentValue, presentValueDelta, presentValueGamma, presentValueSensitivityModelParamsVolatility, presentValueSensitivityRatesStickyStrike, presentValueTheta, validate, validateSwaptionpublic static final SabrSwaptionCashParYieldProductPricer DEFAULT
public SabrSwaptionCashParYieldProductPricer(DiscountingSwapProductPricer swapPricer)
swapPricer - the pricer for Swappublic PointSensitivityBuilder presentValueSensitivityRatesStickyModel(ResolvedSwaption swaption, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The present value sensitivity is computed in a "sticky model parameter" style, i.e. the sensitivity to the curve nodes with the SABR model parameters unchanged. This sensitivity does not include a potential re-calibration of the model parameters to the raw market data.
swaption - the swaption productratesProvider - the rates providerswaptionVolatilities - the volatilitiespublic PointSensitivityBuilder presentValueSensitivityModelParamsSabr(ResolvedSwaption swaption, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities)
The sensitivity of the present value to the SABR model parameters, alpha, beta, rho and nu.
swaption - the swaption productratesProvider - the rates providerswaptionVolatilities - the volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.