public class ImpliedTrinomialTreeFxSingleBarrierOptionTradePricer extends Object
This function provides the ability to price an ResolvedFxSingleBarrierOptionTrade.
| Modifier and Type | Field and Description |
|---|---|
static ImpliedTrinomialTreeFxSingleBarrierOptionTradePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
ImpliedTrinomialTreeFxSingleBarrierOptionTradePricer(ImpliedTrinomialTreeFxSingleBarrierOptionProductPricer productPricer,
DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(ResolvedFxSingleBarrierOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the currency exposure of the FX barrier option trade.
|
CurrencyAmount |
currentCash(ResolvedFxSingleBarrierOptionTrade trade,
LocalDate valuationDate)
Calculates the current of the FX barrier option trade.
|
MultiCurrencyAmount |
presentValue(ResolvedFxSingleBarrierOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the present value of the FX barrier option trade.
|
CurrencyParameterSensitivities |
presentValueSensitivityRates(ResolvedFxSingleBarrierOptionTrade trade,
RatesProvider ratesProvider,
BlackFxOptionVolatilities volatilities)
Calculates the present value sensitivity of the FX barrier option trade.
|
public static final ImpliedTrinomialTreeFxSingleBarrierOptionTradePricer DEFAULT
public ImpliedTrinomialTreeFxSingleBarrierOptionTradePricer(ImpliedTrinomialTreeFxSingleBarrierOptionProductPricer productPricer, DiscountingPaymentPricer paymentPricer)
productPricer - the pricer for ResolvedFxSingleBarrierOptionpaymentPricer - the pricer for Paymentpublic MultiCurrencyAmount presentValue(ResolvedFxSingleBarrierOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
The present value of the trade is the value on the valuation date.
The trinomial tree is first calibrated to Black volatilities, then the price is computed based on the calibrated tree.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic CurrencyParameterSensitivities presentValueSensitivityRates(ResolvedFxSingleBarrierOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
The present value sensitivity of the trade is the sensitivity of the present value to the underlying curves.
The sensitivity is computed by bump and re-price, returning CurrencyParameterSensitivities,
not PointSensitivities.
The trinomial tree is first calibrated to Black volatilities, then the price is computed based on the calibrated tree.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic MultiCurrencyAmount currencyExposure(ResolvedFxSingleBarrierOptionTrade trade, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities)
The trinomial tree is first calibrated to Black volatilities, then the price is computed based on the calibrated tree.
trade - the option traderatesProvider - the rates providervolatilities - the Black volatility providerpublic CurrencyAmount currentCash(ResolvedFxSingleBarrierOptionTrade 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.