public class VannaVolgaFxVanillaOptionProductPricer extends Object
The volatilities are expressed using BlackFxOptionSmileVolatilities.
Each smile of the term structure consists of 3 data points, where the middle point corresponds to ATM volatility.
Reference: The vanna-volga method for implied volatilities (2007), A. Castagna and F. Mercurio, Risk, 106-111, January 2007. OG implementation: Vanna-volga method for Forex options, version 1.0, June 2012.
| Modifier and Type | Field and Description |
|---|---|
static VannaVolgaFxVanillaOptionProductPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
VannaVolgaFxVanillaOptionProductPricer(DiscountingFxSingleProductPricer fxPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the currency exposure of the foreign exchange vanilla option product.
|
CurrencyAmount |
presentValue(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the present value of the foreign exchange vanilla option product.
|
PointSensitivityBuilder |
presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Computes the present value sensitivity to the black volatilities used in the pricing.
|
PointSensitivityBuilder |
presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the present value sensitivity of the foreign exchange vanilla option product.
|
double |
price(ResolvedFxVanillaOption option,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the price of the foreign exchange vanilla option product.
|
public static final VannaVolgaFxVanillaOptionProductPricer DEFAULT
public VannaVolgaFxVanillaOptionProductPricer(DiscountingFxSingleProductPricer fxPricer)
fxPricer - the pricer for ResolvedFxSinglepublic double price(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The price of the product is the value on the valuation date for one unit of the base currency
and is expressed in the counter currency. The price does not take into account the long/short flag.
See presentValue(com.opengamma.strata.product.fxopt.ResolvedFxVanillaOption, com.opengamma.strata.pricer.rate.RatesProvider, com.opengamma.strata.pricer.fxopt.BlackFxOptionSmileVolatilities) for scaling and currency.
option - the option productratesProvider - the rates providervolatilities - the Black volatility providerpublic CurrencyAmount presentValue(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The present value of the product is the value on the valuation date. It is expressed in the counter currency.
option - the option productratesProvider - the rates providervolatilities - the Black volatility providerpublic PointSensitivityBuilder presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The present value sensitivity of the product is the sensitivity of presentValue(com.opengamma.strata.product.fxopt.ResolvedFxVanillaOption, com.opengamma.strata.pricer.rate.RatesProvider, com.opengamma.strata.pricer.fxopt.BlackFxOptionSmileVolatilities) to
the underlying curves.
The implied strikes and weights are fixed in this sensitivity computation.
option - the option productratesProvider - the rates providervolatilities - the Black volatility providerpublic PointSensitivityBuilder presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The implied strikes and weights are fixed in this sensitivity computation.
option - the option productratesProvider - the rates providervolatilities - the Black volatility providerpublic MultiCurrencyAmount currencyExposure(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
option - the option productratesProvider - the rates providervolatilities - the Black volatility providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.