Class SkippedOrder

java.lang.Object
markets.alpaca.client.openapi.broker.model.SkippedOrder
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class SkippedOrder extends Object implements Serializable
Skipped orders model contains information for such orders that the rebalancing engine didn't send to our order system due to some validation issues.
See Also:
  • Field Details

  • Constructor Details

    • SkippedOrder

      public SkippedOrder()
  • Method Details

    • currency

      public SkippedOrder currency(@Nullable String currency)
    • getCurrency

      @Nullable public String getCurrency()
      Currency of the order
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nullable String currency)
    • notional

      public SkippedOrder notional(@Nullable String notional)
    • getNotional

      @Nullable public String getNotional()
      Notional value of the order
      Returns:
      notional
    • setNotional

      public void setNotional(@Nullable String notional)
    • reason

      public SkippedOrder reason(@Nonnull String reason)
    • getReason

      @Nonnull public String getReason()
      Reason for the order being skipped
      Returns:
      reason
    • setReason

      public void setReason(@Nonnull String reason)
    • reasonDetails

      public SkippedOrder reasonDetails(@Nonnull String reasonDetails)
    • getReasonDetails

      @Nonnull public String getReasonDetails()
      Formatted error message with the cause of the skip
      Returns:
      reasonDetails
    • setReasonDetails

      public void setReasonDetails(@Nonnull String reasonDetails)
    • side

      public SkippedOrder side(@Nullable String side)
    • getSide

      @Nullable public String getSide()
      Side of the order (buy, sell, sell_short)
      Returns:
      side
    • setSide

      public void setSide(@Nullable String side)
    • symbol

      public SkippedOrder symbol(@Nonnull String symbol)
    • getSymbol

      @Nonnull public String getSymbol()
      Symbol for which the adjustment was skipped
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nonnull String symbol)
    • putAdditionalProperty

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

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

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