Enum Class Exchange

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

public enum Exchange extends Enum<Exchange> implements Serializable
Represents the exchange where an asset is traded. For Stocks: - AMEX - ARCA - BATS - NYSE - NASDAQ - NYSEARCA - OTC For Crypto: - CRYPTO
  • 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
  • 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