Package com.jquestrade
Class Quote
java.lang.Object
com.jquestrade.Quote
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)
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 Summary
Modifier and TypeMethodDescriptiondouble
Returns the ask price.int
Return the ask size.double
Returns the bid price.int
Returns the bid size.double
Returns the highest price in the past 52 weeks.double
Returns the daily high price.double
Returns the price of the last trade.double
Returns the price of the last trade during regular trade hours.int
Returns the quantity of the last trade.Returns the trade direction.double
Returns the lowest price in the past 52 weeks.double
Returns the daily low price.double
Returns the opening trade price.Returns the symbol/ticker following Questrade's symbology.long
Returns the internal symbol identifier.getTier()
Returns the market tier.long
Returns the trading volume.double
getVWAP()
Returns the Volume Weighted Average Price.boolean
Whether the quote is delayed (true) or real-time (false)boolean
isHalted()
Returns whether trading in the symbol is currently halted.
-
Method Details
-
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
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
- Returns:
- the lastTradeTick
-
getLastTradeTime
Returns the trade direction.- Returns:
- The trade direction.
- See Also:
-
- The Tick Type section for all possible values.
-
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:
-