Class OptionQuote

java.lang.Object
markets.alpaca.client.openapi.data.model.OptionQuote
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OptionQuote extends Object implements Serializable
The best bid and ask information for a given option.
See Also:
  • Field Details

  • Constructor Details

    • OptionQuote

      public OptionQuote()
  • Method Details

    • ap

      public OptionQuote ap(@Nonnull Double ap)
    • getAp

      @Nonnull public Double getAp()
      Ask price.
      Returns:
      ap
    • setAp

      public void setAp(@Nonnull Double ap)
    • as

      public OptionQuote as(@Nonnull Integer as)
    • getAs

      @Nonnull public Integer getAs()
      Ask size.
      Returns:
      as
    • setAs

      public void setAs(@Nonnull Integer as)
    • ax

      public OptionQuote ax(@Nonnull String ax)
    • getAx

      @Nonnull public String getAx()
      Ask exchange.
      Returns:
      ax
    • setAx

      public void setAx(@Nonnull String ax)
    • bp

      public OptionQuote bp(@Nonnull Double bp)
    • getBp

      @Nonnull public Double getBp()
      Bid price.
      Returns:
      bp
    • setBp

      public void setBp(@Nonnull Double bp)
    • bs

      public OptionQuote bs(@Nonnull Integer bs)
    • getBs

      @Nonnull public Integer getBs()
      Bid size.
      Returns:
      bs
    • setBs

      public void setBs(@Nonnull Integer bs)
    • bx

      public OptionQuote bx(@Nonnull String bx)
    • getBx

      @Nonnull public String getBx()
      Bid exchange.
      Returns:
      bx
    • setBx

      public void setBx(@Nonnull String bx)
    • c

      public OptionQuote c(@Nonnull String c)
    • getC

      @Nonnull public String getC()
      Quote condition.
      Returns:
      c
    • setC

      public void setC(@Nonnull String c)
    • t

      public OptionQuote t(@Nonnull OffsetDateTime t)
    • getT

      @Nonnull public OffsetDateTime getT()
      Timestamp in RFC-3339 format with nanosecond precision.
      Returns:
      t
    • setT

      public void setT(@Nonnull OffsetDateTime t)
    • putAdditionalProperty

      public OptionQuote 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 OptionQuote 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 OptionQuote
    • fromJson

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

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