Package com.jquestrade
Class Symbol
java.lang.Object
com.jquestrade.Symbol
Represents a symbol/ticker. For more information on the ticker, use
Questrade#getSymbolInfo(int, int...)
to get a SymbolInfo
, which is this class + more info.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the symbol currency (ISO format).Returns the symbol description (e.g., "Microsoft Corp.").Returns the primary listing exchange of the symbol.Returns the symbol security type (Eg: "Stock")Returns the stock symbol/ticker.int
Returns the internal unique symbol identifier.boolean
Returns whether a symbol has live market data.boolean
Returns whether a symbol is tradable on the platform.
-
Method Details
-
getSymbol
Returns the stock symbol/ticker.- Returns:
- The stock symbol/ticker.
-
getSymbolId
public int getSymbolId()Returns the internal unique symbol identifier.- Returns:
- The internal unique symbol identifier.
-
getDescription
Returns the symbol description (e.g., "Microsoft Corp.").- Returns:
- The symbol description.
-
getSecurityType
Returns the symbol security type (Eg: "Stock")- Returns:
- The symbol security type
- See Also:
-
- The Security Type section for all possible values.
-
getListingExchange
Returns the primary listing exchange of the symbol.- Returns:
- The primary listing exchange.
- See Also:
-
- The Listing Exchange section for all possible values.
-
isTradable
public boolean isTradable()Returns whether a symbol is tradable on the platform.- Returns:
- Whether a symbol is tradable on the platform.
-
isQuotable
public boolean isQuotable()Returns whether a symbol has live market data.- Returns:
- Whether a symbol has live market data.
-
getCurrency
Returns the symbol currency (ISO format).- Returns:
- The symbol currency.
-