public class BondFutureOptionTradeCalculations extends Object
This provides a high-level entry point for option pricing and risk measures.
Each method takes a ResolvedBondFutureOptionTrade, whereas application code will
typically work with BondFutureOptionTrade. Call
BondFutureOptionTrade::resolve(ReferenceData)
to convert BondFutureOptionTrade to ResolvedBondFutureOptionTrade.
BondFuture.| Modifier and Type | Field and Description |
|---|---|
static BondFutureOptionTradeCalculations |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
BondFutureOptionTradeCalculations(BlackBondFutureOptionMarginedTradePricer tradePricer)
Creates an instance.
|
public static final BondFutureOptionTradeCalculations DEFAULT
public BondFutureOptionTradeCalculations(BlackBondFutureOptionMarginedTradePricer tradePricer)
In most cases, applications should use the DEFAULT instance.
tradePricer - the pricer for ResolvedBondFutureOptionTradepublic CurrencyScenarioArray presentValue(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingMarketDataLookup legalEntityLookup, BondFutureOptionMarketDataLookup volsLookup, ScenarioMarketData marketData)
trade - the tradelegalEntityLookup - the lookup used to query the rates market datavolsLookup - the lookup used to query the volatility market datamarketData - the market datapublic CurrencyAmount presentValue(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingProvider discountingProvider, BondFutureVolatilities volatilities)
trade - the tradediscountingProvider - the market datavolatilities - the volatilitiespublic MultiCurrencyScenarioArray pv01CalibratedSum(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingMarketDataLookup legalEntityLookup, BondFutureOptionMarketDataLookup volsLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is the sum of the sensitivities of all affected curves.
trade - the tradelegalEntityLookup - the lookup used to query the rates market datavolsLookup - the lookup used to query the volatility market datamarketData - the market datapublic MultiCurrencyAmount pv01CalibratedSum(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingProvider discountingProvider, BondFutureVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is the sum of the sensitivities of all affected curves.
trade - the tradediscountingProvider - the market datavolatilities - the volatilitiespublic ScenarioArray<CurrencyParameterSensitivities> pv01CalibratedBucketed(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingMarketDataLookup legalEntityLookup, BondFutureOptionMarketDataLookup volsLookup, ScenarioMarketData marketData)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the tradelegalEntityLookup - the lookup used to query the rates market datavolsLookup - the lookup used to query the volatility market datamarketData - the market datapublic CurrencyParameterSensitivities pv01CalibratedBucketed(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingProvider discountingProvider, BondFutureVolatilities volatilities)
This is the sensitivity of present value to a one basis point shift in the calibrated curves. The result is provided for each affected curve and currency, bucketed by curve node.
trade - the tradediscountingProvider - the market datavolatilities - the volatilitiespublic DoubleScenarioArray unitPrice(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingMarketDataLookup legalEntityLookup, BondFutureOptionMarketDataLookup volsLookup, ScenarioMarketData marketData)
This is the price of a single unit of the security.
BondFuture.trade - the tradelegalEntityLookup - the lookup used to query the rates market datavolsLookup - the lookup used to query the volatility market datamarketData - the market datapublic double unitPrice(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingProvider discountingProvider, BondFutureVolatilities volatilities)
This is the price of a single unit of the security.
BondFuture.trade - the tradediscountingProvider - the market datavolatilities - the volatilitiespublic MultiCurrencyScenarioArray currencyExposure(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingMarketDataLookup legalEntityLookup, BondFutureOptionMarketDataLookup volsLookup, ScenarioMarketData marketData)
The currency risk, expressed as the equivalent amount in each currency.
trade - the tradelegalEntityLookup - the lookup used to query the rates market datavolsLookup - the lookup used to query the volatility market datamarketData - the market datapublic MultiCurrencyAmount currencyExposure(ResolvedBondFutureOptionTrade trade, LegalEntityDiscountingProvider discountingProvider, BondFutureVolatilities volatilities)
The currency risk, expressed as the equivalent amount in each currency.
trade - the tradediscountingProvider - the market datavolatilities - the volatilitiesCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.