Class Candle

java.lang.Object
com.jquestrade.Candle

public class Candle extends Object
Represents historical market data in the form of OHLC candlesticks for a specified symbol.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Represents an interval for a set of candles.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the closing price for this candle.
    Returns the candlestick end timestamp (in ISO format).
    double
    Returns the highest price during this candle.
    double
    Returns the lowest price during this candle.
    double
    Returns the opening price for this candle.
    Returns the candlestick start timestamp (in ISO format).
    int
    Returns the trading volume for this candle.
    double
    Returns the Volume Weighted Average Price.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getStart

      public String getStart()
      Returns the candlestick start timestamp (in ISO format).
      Returns:
      Candlestick start timestamp.
    • getEnd

      public String getEnd()
      Returns the candlestick end timestamp (in ISO format).
      Returns:
      Candlestick end timestamp.
    • getLow

      public double getLow()
      Returns the lowest price during this candle.
      Returns:
      The lowest price during this candle.
    • getHigh

      public double getHigh()
      Returns the highest price during this candle.
      Returns:
      The highest price during this candle.
    • getOpen

      public double getOpen()
      Returns the opening price for this candle.
      Returns:
      The opening price for this candle.
    • getClose

      public double getClose()
      Returns the closing price for this candle.
      Returns:
      The closing price for this candle.
    • getVolume

      public int getVolume()
      Returns the trading volume for this candle.
      Returns:
      The trading volume for this candle.
    • getVWAP

      public double getVWAP()
      Returns the Volume Weighted Average Price.
      Returns:
      The VWAP.
      See Also: