Class StockV3Bar

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class StockV3Bar extends Object implements Serializable
OHLC aggregate of trades in an interval. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.
See Also:
  • Field Details

  • Constructor Details

    • StockV3Bar

      public StockV3Bar()
  • Method Details

    • c

      public StockV3Bar c(@Nonnull BigDecimal c)
    • getC

      @Nonnull public BigDecimal getC()
      Price of the last trade in the bar, in the native quotation currency.
      Returns:
      c
    • setC

      public void setC(@Nonnull BigDecimal c)
    • h

      public StockV3Bar h(@Nonnull BigDecimal h)
    • getH

      @Nonnull public BigDecimal getH()
      Highest trade price in the bar, in the native quotation currency.
      Returns:
      h
    • setH

      public void setH(@Nonnull BigDecimal h)
    • l

      public StockV3Bar l(@Nonnull BigDecimal l)
    • getL

      @Nonnull public BigDecimal getL()
      Lowest trade price in the bar, in the native quotation currency.
      Returns:
      l
    • setL

      public void setL(@Nonnull BigDecimal l)
    • n

      public StockV3Bar n(@Nonnull String n)
    • getN

      @Nonnull public String getN()
      Number of trades in the bar.
      Returns:
      n
    • setN

      public void setN(@Nonnull String n)
    • o

      public StockV3Bar o(@Nonnull BigDecimal o)
    • getO

      @Nonnull public BigDecimal getO()
      Price of the first trade in the bar, in the native quotation currency.
      Returns:
      o
    • setO

      public void setO(@Nonnull BigDecimal o)
    • t

      public StockV3Bar 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)
    • v

      public StockV3Bar v(@Nonnull BigDecimal v)
    • getV

      @Nonnull public BigDecimal getV()
      Number of shares traded in the bar.
      Returns:
      v
    • setV

      public void setV(@Nonnull BigDecimal v)
    • vw

      public StockV3Bar vw(@Nonnull BigDecimal vw)
    • getVw

      @Nonnull public BigDecimal getVw()
      Volume-weighted average price of the trades in the bar, in the native quotation currency.
      Returns:
      vw
    • setVw

      public void setVw(@Nonnull BigDecimal vw)
    • putAdditionalProperty

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

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

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