Class PublicMarket

java.lang.Object
markets.alpaca.client.openapi.trading.model.PublicMarket
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class PublicMarket extends Object implements Serializable
A market.
See Also:
  • Field Details

  • Constructor Details

    • PublicMarket

      public PublicMarket()
  • Method Details

    • acronym

      public PublicMarket acronym(@Nonnull String acronym)
    • getAcronym

      @Nonnull public String getAcronym()
      The acronym of the market.
      Returns:
      acronym
    • setAcronym

      public void setAcronym(@Nonnull String acronym)
    • bic

      public PublicMarket bic(@Nullable String bic)
    • getBic

      @Nullable public String getBic()
      Business Identifier Code (BIC/SWIFT).
      Returns:
      bic
    • setBic

      public void setBic(@Nullable String bic)
    • mic

      public PublicMarket mic(@Nullable String mic)
    • getMic

      @Nullable public String getMic()
      Market identifier code (ISO 10383).
      Returns:
      mic
    • setMic

      public void setMic(@Nullable String mic)
    • name

      public PublicMarket name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      The full name of the market.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • timezone

      public PublicMarket timezone(@Nonnull String timezone)
    • getTimezone

      @Nonnull public String getTimezone()
      The timezone of the market.
      Returns:
      timezone
    • setTimezone

      public void setTimezone(@Nonnull String timezone)
    • putAdditionalProperty

      public PublicMarket putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the PublicMarket instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to PublicMarket
    • fromJson

      public static PublicMarket fromJson(String jsonString) throws IOException
      Create an instance of PublicMarket given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PublicMarket
      Throws:
      IOException - if the JSON string is invalid with respect to PublicMarket
    • toJson

      public String toJson()
      Convert an instance of PublicMarket to an JSON string
      Returns:
      JSON string