Package com.longbridge.quote
Class Candlestick
- java.lang.Object
-
- com.longbridge.quote.Candlestick
-
public class Candlestick extends Object
Candlestick (OHLCV bar).
-
-
Constructor Summary
Constructors Constructor Description Candlestick()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetClose()Returns the closing price.BigDecimalgetHigh()Returns the highest price.BigDecimalgetLow()Returns the lowest price.BigDecimalgetOpen()Returns the opening price.OffsetDateTimegetTimestamp()Returns the timestamp of this candlestick.TradeSessiongetTradeSession()Returns the trade session this candlestick belongs to.BigDecimalgetTurnover()Returns the turnover.longgetVolume()Returns the trading volume.StringtoString()
-
-
-
Method Detail
-
getClose
public BigDecimal getClose()
Returns the closing price.- Returns:
- the closing price
-
getOpen
public BigDecimal getOpen()
Returns the opening price.- Returns:
- the opening price
-
getLow
public BigDecimal getLow()
Returns the lowest price.- Returns:
- the lowest price
-
getHigh
public BigDecimal getHigh()
Returns the highest price.- Returns:
- the highest price
-
getVolume
public long getVolume()
Returns the trading volume.- Returns:
- the trading volume
-
getTurnover
public BigDecimal getTurnover()
Returns the turnover.- Returns:
- the turnover
-
getTimestamp
public OffsetDateTime getTimestamp()
Returns the timestamp of this candlestick.- Returns:
- the timestamp
-
getTradeSession
public TradeSession getTradeSession()
Returns the trade session this candlestick belongs to.- Returns:
- the trade session
-
-