Class SymbolInfo

java.lang.Object
com.jquestrade.SymbolInfo

public class SymbolInfo extends Object
Represents information about a symbol/ticker
  • Method Details

    • getSymbol

      public String 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

      public String getDescription()
      Returns the symbol description (e.g., "Microsoft Corp.").
      Returns:
      The symbol description.
    • getSecurityType

      public String getSecurityType()
      Returns the symbol security type (Eg: "Stock")
      Returns:
      The symbol security type
      See Also:
    • getListingExchange

      public String getListingExchange()
      Returns the primary listing exchange of the symbol.
      Returns:
      The primary listing exchange.
      See Also:
    • 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

      public String 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.
    • getOutstandingShares

      public long getOutstandingShares()
      Returns the total number of shares outstanding.
      Returns:
      The total number of shares outstanding.
    • 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

      public String 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

      public String getOptionType()
      Returns the option duration type (e.g., "Weekly").
      Returns:
      The option duration type.
      See Also:
    • getOptionDurationType

      public String getOptionDurationType()
      Returns the option type (e.g., "Call").
      Returns:
      The option type
      See Also:
    • getOptionRoot

      public String getOptionRoot()
      Returns the option root symbol (e.g., "MSFT").
      Returns:
      The option root symbol
    • getOptionContractDeliverables

      @Deprecated public Object getOptionContractDeliverables()
      Deprecated.
      Returns the option contract deliverables. Unimplemented.
      Returns:
      the optionContractDeliverables
    • getOptionExerciseType

      public String getOptionExerciseType()
      Returns the option exercise style (e.g., "American").
      Returns:
      The option exercise style.
      See Also:
    • getOptionExpiryDate

      public String getOptionExpiryDate()
      Returns the date on which the option expires.
      Returns:
      The date on which the option expires.
    • getDividendDate

      public String getDividendDate()
      Returns the dividend declaration date.
      Returns:
      The dividend declaration date.
    • getOptionStrikePrice

      public String 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

      public SymbolInfo.MinTick[] getMinTicks()
      Returns the min ticks.
      Returns:
      The min ticks.
    • getIndustrySector

      public String getIndustrySector()
      Returns the industry sector classification.
      Returns:
      The industry sector classification.
    • getIndustryGroup

      public String getIndustryGroup()
      Returns the industry group classification.
      Returns:
      The industry group classification.
    • getIndustrySubgroup

      public String getIndustrySubgroup()
      Returns the industry subgroup classification.
      Returns:
      The industry subgroup classification.