Package com.jquestrade
Class Candle
java.lang.Object
com.jquestrade.Candle
Represents historical market data in the form of OHLC candlesticks for a specified symbol.
- See Also:
-
- Candles API documentation for more insight.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents an interval for a set of candles. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getClose()
Returns the closing price for this candle.getEnd()
Returns the candlestick end timestamp (in ISO format).double
getHigh()
Returns the highest price during this candle.double
getLow()
Returns the lowest price during this candle.double
getOpen()
Returns the opening price for this candle.getStart()
Returns the candlestick start timestamp (in ISO format).int
Returns the trading volume for this candle.double
getVWAP()
Returns the Volume Weighted Average Price.
-
Method Details
-
getStart
Returns the candlestick start timestamp (in ISO format).- Returns:
- Candlestick start timestamp.
-
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:
-