public class VannaVolgaFxVanillaOptionTradePricer 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.
| Modifier and Type | Field and Description |
|---|---|
static VannaVolgaFxVanillaOptionTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
VannaVolgaFxVanillaOptionTradePricer(VannaVolgaFxVanillaOptionProductPricer productPricer,
DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the currency exposure of the FX vanilla option trade.
|
CurrencyAmount |
currentCash(ResolvedFxVanillaOptionTrade trade,
LocalDate valuationDate)
Calculates the current of the FX vanilla option trade.
|
MultiCurrencyAmount |
presentValue(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the present value of the FX vanilla option trade.
|
PointSensitivities |
presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Computes the present value sensitivity to the black volatility used in the pricing.
|
PointSensitivities |
presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionSmileVolatilities volatilities)
Calculates the present value sensitivity of the FX vanilla option trade.
|
public static final VannaVolgaFxVanillaOptionTradePricer DEFAULT
public VannaVolgaFxVanillaOptionTradePricer(VannaVolgaFxVanillaOptionProductPricer productPricer, DiscountingPaymentPricer paymentPricer)
productPricer - the pricer for ResolvedFxVanillaOptionpaymentPricer - the pricer for Paymentpublic MultiCurrencyAmount presentValue(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The present value of the trade is the value on the valuation date.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic PointSensitivities presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
The volatility is fixed in this sensitivity computation.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic PointSensitivities presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
The result is a single sensitivity to the volatility used.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic MultiCurrencyAmount currencyExposure(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionSmileVolatilities volatilities)
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic CurrencyAmount currentCash(ResolvedFxVanillaOptionTrade trade, LocalDate valuationDate)
trade - the option tradevaluationDate - the valuation dateCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.