public interface ObservableId extends MarketDataId<Double>
Observable data can be requested from an external data provider, for example Bloomberg or Reuters.
An observable ID contains three pieces of information:
StandardId identifying the market data. This ID can come from any system. It might be
an OpenGamma ID, for example OpenGammaIndex~GBP_LIBOR_3M, or it can be an ID from a market
data source, for example BloombergTicker~AAPL US Equity.FieldName indicating the field in the market data record containing the data. See
the FieldName documentation for more details.ObservableSource indicating where the data should come from.
It is important to note that the standard ID is not necessarily related to the source.
There is typically a mapping step in the market data system that maps the standard ID
into an ID that can be used to look up the data in the source.
Observable data is always represented by a double.
| Modifier and Type | Method and Description |
|---|---|
FieldName |
getFieldName()
Gets the field name in the market data record that contains the market data item.
|
default Class<Double> |
getMarketDataType()
Gets the type of data this identifier refers to, which is a
double. |
ObservableSource |
getObservableSource()
Gets the source of market data from which the market data should be retrieved.
|
StandardId |
getStandardId()
Gets the standard identifier identifying the data.
|
ObservableId |
withObservableSource(ObservableSource obsSource)
Returns an identifier equivalent to this with the specified source.
|
default Class<Double> getMarketDataType()
double.getMarketDataType in interface MarketDataId<Double>Double.classStandardId getStandardId()
The identifier may be the identifier used to identify the item in an underlying data provider, for example a Bloomberg ticker. It also may be any arbitrary unique identifier that can be resolved to one or more data provider identifiers which are used to request the data from the provider.
FieldName getFieldName()
Each ticker typically exposes many different fields. The field name specifies the desired field. For example, the market value.
ObservableSource getObservableSource()
The source identifies the source of data, such as Bloomberg or Reuters.
ObservableId withObservableSource(ObservableSource obsSource)
obsSource - the source of market dataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.