Class Quote

java.lang.Object
com.jquestrade.Quote

public class Quote extends Object
Represents a single Level 1 market data quote for a ticker.

IMPORTANT NOTE: The Questrade user needs to be subscribed to a real-time data package, to receive market quotes in real-time, otherwise call to get quote is considered snap quote and limit per market can be quickly reached. Without real-time data package, once limit is reached, the response will return delayed data. (Please check "delay" parameter in response always)
See Also:
  • Method Details

    • getSymbol

      public String getSymbol()
      Returns the symbol/ticker following Questrade's symbology.
      Returns:
      The symbol/ticker.
    • getSymbolId

      public long getSymbolId()
      Returns the internal symbol identifier.
      Returns:
      The internal symbol identifier.
    • getTier

      public String getTier()
      Returns the market tier.
      Returns:
      The market tier.
    • getBidPrice

      public double getBidPrice()
      Returns the bid price.
      Returns:
      The bid price.
    • getBidSize

      public int getBidSize()
      Returns the bid size.
      Returns:
      The bid size.
    • getAskPrice

      public double getAskPrice()
      Returns the ask price.
      Returns:
      The ask price.
    • getAskSize

      public int getAskSize()
      Return the ask size.
      Returns:
      The ask size.
    • getLastTradePriceTrHrs

      public double getLastTradePriceTrHrs()
      Returns the price of the last trade during regular trade hours.
      Returns:
      The price of the last trade during regular trade hours.
    • getLastTradePrice

      public double getLastTradePrice()
      Returns the price of the last trade.
      Returns:
      The price of the last trade.
    • getLastTradeSize

      public int getLastTradeSize()
      Returns the quantity of the last trade.
      Returns:
      The quantity of the last trade.
    • getLastTradeTick

      public String getLastTradeTick()
      Returns:
      the lastTradeTick
    • getLastTradeTime

      public String getLastTradeTime()
      Returns the trade direction.
      Returns:
      The trade direction.
      See Also:
    • getVolume

      public long getVolume()
      Returns the trading volume.
      Returns:
      The volume.
    • getOpenPrice

      public double getOpenPrice()
      Returns the opening trade price.
      Returns:
      The opening trade price.
    • getHighPrice

      public double getHighPrice()
      Returns the daily high price.
      Returns:
      The daily high price.
    • getLowPrice

      public double getLowPrice()
      Returns the daily low price.
      Returns:
      The daily low price.
    • isDelayed

      public boolean isDelayed()
      Whether the quote is delayed (true) or real-time (false)
      Returns:
      Whether the quote is delayed.
    • isHalted

      public boolean isHalted()
      Returns whether trading in the symbol is currently halted.
      Returns:
      Whether trading in the symbol is currently halted.
    • getHigh52w

      public double getHigh52w()
      Returns the highest price in the past 52 weeks.
      Returns:
      The highest price in the past 52 weeks.
    • getLow52w

      public double getLow52w()
      Returns the lowest price in the past 52 weeks.
      Returns:
      The lowest price in the past 52 weeks.
    • getVWAP

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