Package com.longbridge.quote
Class SecurityQuote
- java.lang.Object
-
- com.longbridge.quote.SecurityQuote
-
public class SecurityQuote extends Object
Quote of a security.
-
-
Constructor Summary
Constructors Constructor Description SecurityQuote()
-
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.PrePostQuotegetOvernightQuote()Returns the overnight quote (US stocks only), or null if not available.PrePostQuotegetPostMarketQuote()Returns the post-market quote (US stocks only), or null if not available.PrePostQuotegetPreMarketQuote()Returns the pre-market quote (US stocks only), or null if not available.BigDecimalgetPrevClose()Returns yesterday's closing 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
-
getPrevClose
public BigDecimal getPrevClose()
Returns yesterday's closing price.- Returns:
- yesterday's closing 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
-
getPreMarketQuote
public PrePostQuote getPreMarketQuote()
Returns the pre-market quote (US stocks only), or null if not available.- Returns:
- the pre-market quote, or null if not available
-
getPostMarketQuote
public PrePostQuote getPostMarketQuote()
Returns the post-market quote (US stocks only), or null if not available.- Returns:
- the post-market quote, or null if not available
-
getOvernightQuote
public PrePostQuote getOvernightQuote()
Returns the overnight quote (US stocks only), or null if not available.- Returns:
- the overnight quote, or null if not available
-
-