public final class BlackBondFutureOptionMarginedProductPricer extends Object
BondFuture.| Modifier and Type | Field and Description |
|---|---|
static BlackBondFutureOptionMarginedProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
BlackBondFutureOptionMarginedProductPricer(DiscountingBondFutureProductPricer futurePricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
deltaStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the delta of the bond future option product.
|
double |
deltaStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the delta of the bond future option product based on the price of the underlying future.
|
double |
gammaStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the gamma of the bond future option product.
|
double |
gammaStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the gamma of the bond future option product based on the price of the underlying future.
|
double |
price(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the price of the bond future option product.
|
double |
price(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the price of the bond future option product
based on the price of the underlying future.
|
BondFutureOptionSensitivity |
priceSensitivityModelParamsVolatility(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the price sensitivity to the Black volatility used for the pricing of the bond future option.
|
BondFutureOptionSensitivity |
priceSensitivityModelParamsVolatility(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the price sensitivity to the Black volatility used for the pricing of the bond future option
based on the price of the underlying future.
|
PointSensitivities |
priceSensitivityRatesStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the price sensitivity of the bond future option product based on curves.
|
PointSensitivities |
priceSensitivityRatesStickyStrike(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the price sensitivity of the bond future option product based on the price of the underlying future.
|
double |
theta(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities)
Calculates the theta of the bond future option product.
|
double |
theta(ResolvedBondFutureOption futureOption,
LegalEntityDiscountingProvider discountingProvider,
BlackBondFutureVolatilities volatilities,
double futurePrice)
Calculates the theta of the bond future option product based on the price of the underlying future.
|
public static final BlackBondFutureOptionMarginedProductPricer DEFAULT
public BlackBondFutureOptionMarginedProductPricer(DiscountingBondFutureProductPricer futurePricer)
futurePricer - the pricer for ResolvedBondFutureOptionpublic double price(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
The price of the option is the price on the valuation date.
This calculates the underlying future price using the future pricer.
Strata uses decimal prices for bond futures. This is coherent with the pricing of BondFuture.
For example, a price of 1.32% is represented in Strata by 0.0132.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic double price(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
The price of the option is the price on the valuation date.
Strata uses decimal prices for bond futures. This is coherent with the pricing of BondFuture.
For example, a price of 1.32% is represented in Strata by 0.0132.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the price of the underlying futurepublic double deltaStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
The delta of the product is the sensitivity of the option price to the future price. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
This calculates the underlying future price using the future pricer.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic double deltaStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
The delta of the product is the sensitivity of the option price to the future price. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the price of the underlying futurepublic double gammaStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
The gamma of the product is the sensitivity of the option delta to the future price. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
This calculates the underlying future price using the future pricer.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic double gammaStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
The gamma of the product is the sensitivity of the option delta to the future price. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the price of the underlying futurepublic double theta(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
The theta of the product is the minus of the option price sensitivity to the time to expiry. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
This calculates the underlying future price using the future pricer.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic double theta(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
The theta of the product is minus of the option price sensitivity to the time to expiry. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the price of the underlying futurepublic PointSensitivities priceSensitivityRatesStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
The price sensitivity of the product is the sensitivity of the price to the underlying curves. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
This calculates the underlying future price using the future pricer.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic PointSensitivities priceSensitivityRatesStickyStrike(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
The price sensitivity of the product is the sensitivity of the price to the underlying curves. The volatility is unchanged for a fixed strike in the sensitivity computation, hence the "StickyStrike" name.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the price of the underlying futurepublic BondFutureOptionSensitivity priceSensitivityModelParamsVolatility(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities)
This calculates the underlying future price using the future pricer.
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiespublic BondFutureOptionSensitivity priceSensitivityModelParamsVolatility(ResolvedBondFutureOption futureOption, LegalEntityDiscountingProvider discountingProvider, BlackBondFutureVolatilities volatilities, double futurePrice)
futureOption - the option productdiscountingProvider - the discounting providervolatilities - the volatilitiesfuturePrice - the underlying future priceCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.