Package com.longbridge.quote
Class RealtimeQuote
- java.lang.Object
-
- com.longbridge.quote.RealtimeQuote
-
public class RealtimeQuote extends Object
Real-time quote retrieved from the local subscription cache.
-
-
Constructor Summary
Constructors Constructor Description RealtimeQuote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetHigh()Returns the highest price of the day.BigDecimalgetLastDone()Returns the latest price.BigDecimalgetLow()Returns the lowest price of the day.BigDecimalgetOpen()Returns the opening price.StringgetSymbol()Returns the security code.OffsetDateTimegetTimestamp()Returns the timestamp of the latest price.TradeStatusgetTradeStatus()Returns the security trading status.BigDecimalgetTurnover()Returns the cumulative turnover.longgetVolume()Returns the cumulative trading volume.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the security code.- Returns:
- the security code
-
getLastDone
public BigDecimal getLastDone()
Returns the latest price.- Returns:
- the latest price
-
getOpen
public BigDecimal getOpen()
Returns the opening price.- Returns:
- the opening price
-
getHigh
public BigDecimal getHigh()
Returns the highest price of the day.- Returns:
- the highest price of the day
-
getLow
public BigDecimal getLow()
Returns the lowest price of the day.- Returns:
- the lowest price of the day
-
getTimestamp
public OffsetDateTime getTimestamp()
Returns the timestamp of the latest price.- Returns:
- the timestamp of the latest price
-
getVolume
public long getVolume()
Returns the cumulative trading volume.- Returns:
- the cumulative trading volume
-
getTurnover
public BigDecimal getTurnover()
Returns the cumulative turnover.- Returns:
- the cumulative turnover
-
getTradeStatus
public TradeStatus getTradeStatus()
Returns the security trading status.- Returns:
- the security trading status
-
-