Class IndexQuoteId

    • Method Detail

      • of

        public static IndexQuoteId of​(Index index,
                                      FieldName fieldName)
        Obtains an instance used to obtain an observable value of the index.

        The market data source is ObservableSource.NONE.

        Parameters:
        index - the index
        fieldName - the name of the field in the market data record holding the data
        Returns:
        the identifier
      • of

        public static IndexQuoteId of​(Index index,
                                      FieldName fieldName,
                                      ObservableSource obsSource)
        Obtains an instance used to obtain an observable value of the index, specifying the source of observable market data.
        Parameters:
        index - the index
        fieldName - the name of the field in the market data record holding the data
        obsSource - the source of observable market data
        Returns:
        the identifier
      • getStandardId

        public StandardId getStandardId()
        Gets the identifier of the data.

        This returns an artificial identifier with a scheme of 'OG-Future' and a value of the index name.

        Specified by:
        getStandardId in interface ObservableId
        Returns:
        the standard identifier
      • withObservableSource

        public IndexQuoteId withObservableSource​(ObservableSource obsSource)
        Description copied from interface: ObservableId
        Returns an identifier equivalent to this with the specified source.
        Specified by:
        withObservableSource in interface ObservableId
        Parameters:
        obsSource - the source of market data
        Returns:
        the observable identifier
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getIndex

        public Index getIndex()
        Gets the index.
        Returns:
        the value of the property, not null
      • getFieldName

        public FieldName getFieldName()
        Gets the field name in the market data record that contains the market data item. The most common field name is market value.
        Specified by:
        getFieldName in interface ObservableId
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object