public class BlackFixedCouponBondOptionPricer extends Object
The volatilities are stored in a (normalized) BondYieldVolatilities. They are stored as bond yield equivalent volatilities and are converted to bond price volatilities through the formula "price volatility = duration * yield volatility".
| Modifier and Type | Field and Description |
|---|---|
static BlackFixedCouponBondOptionPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
BlackFixedCouponBondOptionPricer(DiscountingFixedCouponBondProductPricer bondPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected DiscountingFixedCouponBondProductPricer |
getBondPricer()
Gets the bond pricer.
|
CurrencyAmount |
presentValue(ResolvedFixedCouponBondOption bondOption,
LegalEntityDiscountingProvider legalEntityProvider,
BondYieldVolatilities volatilities)
Calculates the present value of the bond option.
|
BondYieldSensitivity |
presentValueSensitivityModelParamsVolatility(ResolvedFixedCouponBondOption bondOption,
LegalEntityDiscountingProvider legalEntityProvider,
BondYieldVolatilities volatilities)
Returns the present value sensitivity to the underlying yield volatilities.
|
PointSensitivities |
presentValueSensitivityRatesStickyStrike(ResolvedFixedCouponBondOption bondOption,
LegalEntityDiscountingProvider legalEntityProvider,
BondYieldVolatilities volatilities)
Returns the present value sensitivity to the underlying curves.
|
public static final BlackFixedCouponBondOptionPricer DEFAULT
public BlackFixedCouponBondOptionPricer(DiscountingFixedCouponBondProductPricer bondPricer)
bondPricer - the pricer for the underlying ResolvedFixedCouponBond.protected DiscountingFixedCouponBondProductPricer getBondPricer()
public CurrencyAmount presentValue(ResolvedFixedCouponBondOption bondOption, LegalEntityDiscountingProvider legalEntityProvider, BondYieldVolatilities volatilities)
The volatilities are stored as yield volatilities. They are converted to bond volatilities using the approximated formula "price volatility = duration * yield volatility".
bondOption - the bond optionlegalEntityProvider - the provider to value the bondvolatilities - the volatilitiespublic PointSensitivities presentValueSensitivityRatesStickyStrike(ResolvedFixedCouponBondOption bondOption, LegalEntityDiscountingProvider legalEntityProvider, BondYieldVolatilities volatilities)
The sensitivity is computed with "sticky strike" volatility, i.e. the volatility used in the Black formula is not impacted by the curve-implied change in moneyness.
The volatilities are stored as yield volatilities. They are converted to bond volatilities using the approximated formula "price volatility = duration * yield volatility".
bondOption - the bond optionlegalEntityProvider - the provider to value the bondvolatilities - the volatilitiespublic BondYieldSensitivity presentValueSensitivityModelParamsVolatility(ResolvedFixedCouponBondOption bondOption, LegalEntityDiscountingProvider legalEntityProvider, BondYieldVolatilities volatilities)
The sensitivity is to the underlying yield volatilities, before they are transformed to bond price volatilities as described below.
The volatilities are stored as yield volatilities. They are converted to bond volatilities using the approximated formula "price volatility = duration * yield volatility".
bondOption - the bond optionlegalEntityProvider - the provider to value the bondvolatilities - the volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.