Class StockV3Snapshot

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class StockV3Snapshot extends Object implements Serializable
The latest trade, latest quote, minute bar, current daily bar, and previous daily bar for one symbol. 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. Trades and bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.
See Also:
  • Field Details

  • Constructor Details

    • StockV3Snapshot

      public StockV3Snapshot()
  • Method Details

    • dailyBar

      public StockV3Snapshot dailyBar(@Nullable StockV3Bar dailyBar)
    • getDailyBar

      @Nullable public StockV3Bar getDailyBar()
      Get dailyBar
      Returns:
      dailyBar
    • setDailyBar

      public void setDailyBar(@Nullable StockV3Bar dailyBar)
    • latestQuote

      public StockV3Snapshot latestQuote(@Nullable StockV3Quote latestQuote)
    • getLatestQuote

      @Nullable public StockV3Quote getLatestQuote()
      Get latestQuote
      Returns:
      latestQuote
    • setLatestQuote

      public void setLatestQuote(@Nullable StockV3Quote latestQuote)
    • latestTrade

      public StockV3Snapshot latestTrade(@Nullable StockV3Trade latestTrade)
    • getLatestTrade

      @Nullable public StockV3Trade getLatestTrade()
      Get latestTrade
      Returns:
      latestTrade
    • setLatestTrade

      public void setLatestTrade(@Nullable StockV3Trade latestTrade)
    • minuteBar

      public StockV3Snapshot minuteBar(@Nullable StockV3Bar minuteBar)
    • getMinuteBar

      @Nullable public StockV3Bar getMinuteBar()
      Get minuteBar
      Returns:
      minuteBar
    • setMinuteBar

      public void setMinuteBar(@Nullable StockV3Bar minuteBar)
    • prevDailyBar

      public StockV3Snapshot prevDailyBar(@Nullable StockV3Bar prevDailyBar)
    • getPrevDailyBar

      @Nullable public StockV3Bar getPrevDailyBar()
      Get prevDailyBar
      Returns:
      prevDailyBar
    • setPrevDailyBar

      public void setPrevDailyBar(@Nullable StockV3Bar prevDailyBar)
    • putAdditionalProperty

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

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

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