Class OHLCVItem

  • All Implemented Interfaces:
    de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem

    public class OHLCVItem
    extends java.lang.Object
    implements de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
    Common wrapper of OHLC/V-OI object
    • Constructor Detail

      • OHLCVItem

        public OHLCVItem​(java.util.Date timeStamp,
                         double open,
                         double high,
                         double low,
                         double close,
                         double volume,
                         double openInterest)
      • OHLCVItem

        public OHLCVItem​(java.util.Date timeStamp,
                         double open,
                         double high,
                         double low,
                         double close,
                         double volume,
                         double openInterest,
                         double volumeUp,
                         double volumeDown)
    • Method Detail

      • setAddon

        public void setAddon​(de.gsi.dataset.spi.financial.api.attrs.AttributeModel addon)
      • getAddon

        public de.gsi.dataset.spi.financial.api.attrs.AttributeModel getAddon()
        Specified by:
        getAddon in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getAddonOrCreate

        public de.gsi.dataset.spi.financial.api.attrs.AttributeModel getAddonOrCreate()
        Specified by:
        getAddonOrCreate in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getTimeStamp

        public java.util.Date getTimeStamp()
        Specified by:
        getTimeStamp in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getOpen

        public double getOpen()
        Specified by:
        getOpen in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getHigh

        public double getHigh()
        Specified by:
        getHigh in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getLow

        public double getLow()
        Specified by:
        getLow in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getClose

        public double getClose()
        Specified by:
        getClose in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getVolume

        public double getVolume()
        Specified by:
        getVolume in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • getVolumeUpAsk

        public double getVolumeUpAsk()
        Returns:
        volume up/ask volume
      • getVolumeDownBid

        public double getVolumeDownBid()
        Returns:
        volume down/bid volume
      • getOpenInterest

        public double getOpenInterest()
        Specified by:
        getOpenInterest in interface de.gsi.dataset.spi.financial.api.ohlcv.IOhlcvItem
      • isGap

        public boolean isGap()
      • setGap

        public void setGap​(boolean gap)
      • toString

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

        public java.lang.String toStringShort()
      • hashCode

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

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