public interface IborFutureOptionMarketDataLookup extends CalculationParameter
The Ibor future option market lookup provides access to the volatilities used to price Ibor future options.
The lookup implements CalculationParameter and is used by passing it
as an argument to CalculationRules. It provides the link between the
data that the function needs and the data that is available in ScenarioMarketData.
Implementations of this interface must be immutable.
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<MarketDataId<?>> |
getVolatilityIds(IborIndex index)
Gets the identifiers used to obtain the volatilities for the specified currency.
|
ImmutableSet<IborIndex> |
getVolatilityIndices()
Gets the set of indices that volatilities are provided for.
|
default IborFutureOptionMarketData |
marketDataView(MarketData marketData)
Obtains a filtered view of the complete set of market data.
|
default IborFutureOptionScenarioMarketData |
marketDataView(ScenarioMarketData marketData)
Obtains a filtered view of the complete set of market data.
|
static IborFutureOptionMarketDataLookup |
of(IborIndex index,
IborFutureOptionVolatilitiesId volatilityId)
Obtains an instance based on a single mapping from index to volatility identifier.
|
static IborFutureOptionMarketDataLookup |
of(Map<IborIndex,IborFutureOptionVolatilitiesId> volatilityIds)
Obtains an instance based on a map of volatility identifiers.
|
default Class<? extends CalculationParameter> |
queryType()
Gets the type that the lookup will be queried by.
|
default FunctionRequirements |
requirements(IborIndex... indices)
Creates market data requirements for the specified indices.
|
FunctionRequirements |
requirements(Set<IborIndex> indices)
Creates market data requirements for the specified indices.
|
IborFutureOptionVolatilities |
volatilities(IborIndex index,
MarketData marketData)
Obtains Ibor future option volatilities based on the specified market data.
|
filterstatic IborFutureOptionMarketDataLookup of(IborIndex index, IborFutureOptionVolatilitiesId volatilityId)
The lookup provides volatilities for the specified index.
index - the Ibor indexvolatilityId - the volatility identifierstatic IborFutureOptionMarketDataLookup of(Map<IborIndex,IborFutureOptionVolatilitiesId> volatilityIds)
The map is used to specify the appropriate volatilities to use for each index.
volatilityIds - the volatility identifiers, keyed by indexdefault Class<? extends CalculationParameter> queryType()
This returns IborFutureOptionMarketLookup.class.
When querying parameters using CalculationParameters.findParameter(Class),
IborFutureOptionMarketLookup.class must be passed in to find the instance.
queryType in interface CalculationParameterImmutableSet<IborIndex> getVolatilityIndices()
ImmutableSet<MarketDataId<?>> getVolatilityIds(IborIndex index)
The result will typically refer to a surface or cube. If the index is not found, an exception is thrown.
index - the index for which identifiers are requiredIllegalArgumentException - if the index is not founddefault FunctionRequirements requirements(IborIndex... indices)
indices - the indices, for which volatilities are requiredFunctionRequirements requirements(Set<IborIndex> indices)
indices - the indices, for which volatilities are requireddefault IborFutureOptionScenarioMarketData marketDataView(ScenarioMarketData marketData)
This method returns an instance that binds the lookup to the market data.
The input is ScenarioMarketData, which contains market data for all scenarios.
marketData - the complete set of market data for all scenariosdefault IborFutureOptionMarketData marketDataView(MarketData marketData)
This method returns an instance that binds the lookup to the market data.
The input is MarketData, which contains market data for one scenario.
marketData - the complete set of market data for one scenarioIborFutureOptionVolatilities volatilities(IborIndex index, MarketData marketData)
This provides IborFutureOptionVolatilities suitable for pricing an Ibor future option.
Although this method can be used directly, it is typically invoked indirectly
via IborFutureOptionMarketData:
// bind the baseData to this lookup IborFutureOptionMarketData view = lookup.marketDataView(baseData); // pass around IborFutureOptionMarketData within the function to use in pricing IborFutureOptionVolatilities vols = view.volatilities(index);
index - the Ibor indexmarketData - the complete set of market data for one scenarioMarketDataNotFoundException - if the index is not foundCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.