Class FxOptionVolatilitiesMarketDataFunction
- java.lang.Object
-
- com.opengamma.strata.measure.fxopt.FxOptionVolatilitiesMarketDataFunction
-
- All Implemented Interfaces:
MarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
public class FxOptionVolatilitiesMarketDataFunction extends Object implements MarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
Market data function that builds FX option volatilities.This function creates FX option volatilities, turning
FxOptionVolatilitiesIdintoFxOptionVolatilities.
-
-
Constructor Summary
Constructors Constructor Description FxOptionVolatilitiesMarketDataFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarketDataBox<FxOptionVolatilities>build(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)Builds and returns the market data identified by the ID.Class<FxOptionVolatilitiesId>getMarketDataIdType()Returns the type of market data ID this function can handle.MarketDataRequirementsrequirements(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig)Returns requirements representing the data needed to build the item of market data identified by the ID.
-
-
-
Method Detail
-
requirements
public MarketDataRequirements requirements(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig)
Description copied from interface:MarketDataFunctionReturns requirements representing the data needed to build the item of market data identified by the ID.- Specified by:
requirementsin interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>- Parameters:
id- an ID identifying an item of market datamarketDataConfig- configuration specifying how market data values should be built- Returns:
- requirements representing the data needed to build the item of market data identified by the ID
-
build
public MarketDataBox<FxOptionVolatilities> build(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)
Description copied from interface:MarketDataFunctionBuilds and returns the market data identified by the ID.If the data cannot be built the result contains details of the problem.
- Specified by:
buildin interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>- Parameters:
id- ID of the market data that should be builtmarketDataConfig- configuration specifying how the market data should be builtmarketData- a set of market data including any data required to build the requested datarefData- the reference data- Returns:
- built market data, or details of the problems that prevented building
-
getMarketDataIdType
public Class<FxOptionVolatilitiesId> getMarketDataIdType()
Description copied from interface:MarketDataFunctionReturns the type of market data ID this function can handle.- Specified by:
getMarketDataIdTypein interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>- Returns:
- the type of market data ID this function can handle
-
-