Class StockV3Quote

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class StockV3Quote extends Object implements Serializable
The best bid and offer (BBO) for the symbol.
See Also:
  • Field Details

  • Constructor Details

    • StockV3Quote

      public StockV3Quote()
  • Method Details

    • ap

      public StockV3Quote ap(@Nonnull BigDecimal ap)
    • getAp

      @Nonnull public BigDecimal getAp()
      Best ask price, in the native quotation currency.
      Returns:
      ap
    • setAp

      public void setAp(@Nonnull BigDecimal ap)
    • as

      public StockV3Quote as(@Nonnull BigDecimal as)
    • getAs

      @Nonnull public BigDecimal getAs()
      Number of shares available at the best ask price.
      Returns:
      as
    • setAs

      public void setAs(@Nonnull BigDecimal as)
    • bp

      public StockV3Quote bp(@Nonnull BigDecimal bp)
    • getBp

      @Nonnull public BigDecimal getBp()
      Best bid price, in the native quotation currency.
      Returns:
      bp
    • setBp

      public void setBp(@Nonnull BigDecimal bp)
    • bs

      public StockV3Quote bs(@Nonnull BigDecimal bs)
    • getBs

      @Nonnull public BigDecimal getBs()
      Number of shares available at the best bid price.
      Returns:
      bs
    • setBs

      public void setBs(@Nonnull BigDecimal bs)
    • t

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

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

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