Package com.jquestrade
Class SymbolInfo
java.lang.Object
com.jquestrade.SymbolInfo
Represents information about a symbol/ticker
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the average trading volume over trailing 20 days.long
Returns the average trading volume over trailing 3 months.Returns the symbol currency (ISO format).Returns the symbol description (e.g., "Microsoft Corp.").double
Returns the dividend amount per share.Returns the dividend declaration date.double
getEps()
Returns the trailing 12-month earnings per share.Returns the dividend ex-date.double
Returns the 52-week high price.Returns the industry group classification.Returns the industry sector classification.Returns the industry subgroup classification.Returns the primary listing exchange of the symbol.double
Returns the 52-week low price.long
Returns the market capitalization (outstandingShares * prevDayClosePrice).Returns the min ticks.Deprecated.Returns the option type (e.g., "Call").Returns the option exercise style (e.g., "American").Returns the date on which the option expires.Returns the option root symbol (e.g., "MSFT").Returns the option strike priceReturns the option duration type (e.g., "Weekly").long
Returns the total number of shares outstanding.double
getPe()
Returns the trailing 12-month price to earnings ratio.double
Returns the closing trade price from the previous trading day.Returns the symbol security type (Eg: "Stock")Returns the stock symbol/ticker.int
Returns the internal unique symbol identifier.int
Returns the number of shares of a particular security that is used as the acceptable quantity for tradingdouble
getYield()
Returns the dividend yield (dividend / prevDayClosePrice).boolean
Returns whether the symbol is an underlying option.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.
-
getPrevDayClosePrice
public double getPrevDayClosePrice()Returns the closing trade price from the previous trading day.- Returns:
- The closing trade price from the previous trading day.
-
getHighPrice52
public double getHighPrice52()Returns the 52-week high price.- Returns:
- The 52-week high price.
-
getLowPrice52
public double getLowPrice52()Returns the 52-week low price.- Returns:
- The 52-week low price.
-
getAverageVol3Months
public long getAverageVol3Months()Returns the average trading volume over trailing 3 months.- Returns:
- The average trading volume over trailing 3 months.
-
getAverageVol20Days
public long getAverageVol20Days()Returns the average trading volume over trailing 20 days.- Returns:
- The average trading volume over trailing 20 days.
-
getEps
public double getEps()Returns the trailing 12-month earnings per share.- Returns:
- The trailing 12-month earnings per share.
-
getPe
public double getPe()Returns the trailing 12-month price to earnings ratio.- Returns:
- The trailing 12-month price to earnings ratio.
-
getDividend
public double getDividend()Returns the dividend amount per share.- Returns:
- The dividend amount per share.
-
getYield
public double getYield()Returns the dividend yield (dividend / prevDayClosePrice).- Returns:
- The dividend yield (dividend / prevDayClosePrice).
-
getExDate
Returns the dividend ex-date.- Returns:
- The dividend ex-date.
-
getMarketCap
public long getMarketCap()Returns the market capitalization (outstandingShares * prevDayClosePrice).- Returns:
- The market capitalization.
-
getTradeUnit
public int getTradeUnit()Returns the number of shares of a particular security that is used as the acceptable quantity for trading- Returns:
- The trade unit.
-
getOptionType
Returns the option duration type (e.g., "Weekly").- Returns:
- The option duration type.
- See Also:
-
- The Option Type section for all possible values.
-
getOptionDurationType
Returns the option type (e.g., "Call").- Returns:
- The option type
- See Also:
-
- The Option Duration Type section for all possible values.
-
getOptionRoot
Returns the option root symbol (e.g., "MSFT").- Returns:
- The option root symbol
-
getOptionContractDeliverables
Deprecated.Returns the option contract deliverables. Unimplemented.- Returns:
- the optionContractDeliverables
-
getOptionExerciseType
Returns the option exercise style (e.g., "American").- Returns:
- The option exercise style.
- See Also:
-
- The Option Exercise Type section for all possible values.
-
getOptionExpiryDate
Returns the date on which the option expires.- Returns:
- The date on which the option expires.
-
getDividendDate
Returns the dividend declaration date.- Returns:
- The dividend declaration date.
-
getOptionStrikePrice
Returns the option strike price- Returns:
- the optionStrikePrice
-
hasOptions
public boolean hasOptions()Returns whether the symbol is an underlying option.- Returns:
- Whether the symbol is an underlying option.
-
getMinTicks
Returns the min ticks.- Returns:
- The min ticks.
-
getIndustrySector
Returns the industry sector classification.- Returns:
- The industry sector classification.
-
getIndustryGroup
Returns the industry group classification.- Returns:
- The industry group classification.
-
getIndustrySubgroup
Returns the industry subgroup classification.- Returns:
- The industry subgroup classification.
-