public class BlackFxVanillaOptionTradePricer extends Object
This function provides the ability to price an FxVanillaOptionTrade.
| Modifier and Type | Field and Description |
|---|---|
static BlackFxVanillaOptionTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
BlackFxVanillaOptionTradePricer(BlackFxVanillaOptionProductPricer productPricer,
DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities 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.
|
FxRate |
forwardFxRate(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider)
Calculates the forward exchange rate.
|
double |
impliedVolatility(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the implied Black volatility of the foreign exchange vanilla option trade.
|
MultiCurrencyAmount |
presentValue(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the present value of the FX vanilla option trade.
|
PointSensitivities |
presentValueSensitivityModelParamsVolatility(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Computes the present value sensitivity to the black volatility used in the pricing.
|
PointSensitivities |
presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the present value sensitivity of the FX vanilla option trade.
|
public static final BlackFxVanillaOptionTradePricer DEFAULT
public BlackFxVanillaOptionTradePricer(BlackFxVanillaOptionProductPricer productPricer, DiscountingPaymentPricer paymentPricer)
productPricer - the pricer for ResolvedFxVanillaOptionpaymentPricer - the pricer for Paymentpublic MultiCurrencyAmount presentValue(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionVolatilities 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, BlackFxOptionVolatilities 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, BlackFxOptionVolatilities 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, BlackFxOptionVolatilities volatilities)
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic CurrencyAmount currentCash(ResolvedFxVanillaOptionTrade trade, LocalDate valuationDate)
trade - the option tradevaluationDate - the valuation datepublic FxRate forwardFxRate(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider)
trade - the option traderatesProvider - the rates providerpublic double impliedVolatility(ResolvedFxVanillaOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerIllegalArgumentException - if the option has expiredCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.