/** * Obtains an instance used to obtain an observable value. * <p> * The market data source is {@link ObservableSource#NONE}. * * @param standardId the standard identifier of the data in the underlying data provider * @param fieldName the name of the field in the market data record holding the data * @return the identifier */ public static QuoteId of(StandardId standardId, FieldName fieldName) { return new QuoteId(standardId, fieldName, ObservableSource.NONE); }
/** * Obtains an instance used to obtain an observable value, * specifying the source of observable market data. * * @param standardId the standard identifier of the data in the underlying data provider * @param fieldName the name of the field in the market data record holding the data * @param obsSource the source of observable market data * @return the identifier */ public static QuoteId of(StandardId standardId, FieldName fieldName, ObservableSource obsSource) { return new QuoteId(standardId, fieldName, obsSource); }
/** * Obtains an instance used to obtain an observable value. * <p> * The field name containing the data is {@link FieldName#MARKET_VALUE} and the market * data source is {@link ObservableSource#NONE}. * * @param standardId the standard identifier of the data in the underlying data provider * @return the identifier */ public static QuoteId of(StandardId standardId) { return new QuoteId(standardId, FieldName.MARKET_VALUE, ObservableSource.NONE); }
@Override public QuoteId withObservableSource(ObservableSource obsSource) { return new QuoteId(standardId, fieldName, obsSource); }