Class StockSnapshotsRespSingle

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

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

  • Constructor Details

    • StockSnapshotsRespSingle

      public StockSnapshotsRespSingle()
  • Method Details

    • dailyBar

      public StockSnapshotsRespSingle dailyBar(@Nullable StockBar dailyBar)
    • getDailyBar

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

      public void setDailyBar(@Nullable StockBar dailyBar)
    • latestQuote

      public StockSnapshotsRespSingle latestQuote(@Nullable StockQuote latestQuote)
    • getLatestQuote

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

      public void setLatestQuote(@Nullable StockQuote latestQuote)
    • latestTrade

      public StockSnapshotsRespSingle latestTrade(@Nullable StockTrade latestTrade)
    • getLatestTrade

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

      public void setLatestTrade(@Nullable StockTrade latestTrade)
    • minuteBar

      public StockSnapshotsRespSingle minuteBar(@Nullable StockBar minuteBar)
    • getMinuteBar

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

      public void setMinuteBar(@Nullable StockBar minuteBar)
    • prevDailyBar

      public StockSnapshotsRespSingle prevDailyBar(@Nullable StockBar prevDailyBar)
    • getPrevDailyBar

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

      public void setPrevDailyBar(@Nullable StockBar prevDailyBar)
    • currency

      public StockSnapshotsRespSingle currency(@Nullable String currency)
    • getCurrency

      @Nullable public String getCurrency()
      Get currency
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nullable String currency)
    • symbol

      public StockSnapshotsRespSingle symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      Get symbol
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • putAdditionalProperty

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

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

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