Enum Class StockSource

java.lang.Object
java.lang.Enum<StockSource>
markets.alpaca.client.ws.StockSource
All Implemented Interfaces:
Serializable, Comparable<StockSource>, Constable

public enum StockSource extends Enum<StockSource>
Data source for the stock pricing stream.
  • IEX — IEX Exchange data; limited to 30 concurrent trade/quote channels and one connection per account.
  • SIP — CTA (NYSE) and UTP (Nasdaq) SIP direct feeds; unlimited channels and one connection per account.
  • Enum Constant Details

  • Method Details

    • values

      public static StockSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StockSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • pathSegment

      public String pathSegment()
      Returns the URL path segment used to address this source (e.g. "iex").