Enum Class Exchange

java.lang.Object
java.lang.Enum<Exchange>
markets.alpaca.client.openapi.trading.model.Exchange
All Implemented Interfaces:
Serializable, Comparable<Exchange>, Constable

public enum Exchange extends Enum<Exchange> implements Serializable
Represents the current exchanges Alpaca supports. List is currently: US equities: - AMEX - ARCA - BATS - NYSE - NASDAQ - NYSEARCA - OTC - TXSE Crypto: - CRYPTO - ERSX - CRXL Crypto perpetuals: - ASCX Index symbols: - INDEX INDEX is the artificial exchange for index symbols such as SPX.
  • Enum Constant Details

    • AMEX

      public static final Exchange AMEX
    • ARCA

      public static final Exchange ARCA
    • BATS

      public static final Exchange BATS
    • NYSE

      public static final Exchange NYSE
    • NASDAQ

      public static final Exchange NASDAQ
    • NYSEARCA

      public static final Exchange NYSEARCA
    • OTC

      public static final Exchange OTC
    • CRYPTO

      public static final Exchange CRYPTO
    • TXSE

      public static final Exchange TXSE
    • ERSX

      public static final Exchange ERSX
    • CRXL

      public static final Exchange CRXL
    • ASCX

      public static final Exchange ASCX
    • INDEX

      public static final Exchange INDEX
  • Method Details

    • values

      public static Exchange[] 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 Exchange 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Exchange>
    • fromValue

      public static Exchange fromValue(String value)
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException