Class TradeActivity

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

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

  • Constructor Details

    • TradeActivity

      public TradeActivity()
  • Method Details

    • cumQty

      public TradeActivity cumQty(@Nullable BigDecimal cumQty)
    • getCumQty

      @Nullable public BigDecimal getCumQty()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      cumQty
    • setCumQty

      public void setCumQty(@Nullable BigDecimal cumQty)
    • leavesQty

      public TradeActivity leavesQty(@Nullable BigDecimal leavesQty)
    • getLeavesQty

      @Nullable public BigDecimal getLeavesQty()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      leavesQty
    • setLeavesQty

      public void setLeavesQty(@Nullable BigDecimal leavesQty)
    • orderId

      public TradeActivity orderId(@Nullable UUID orderId)
    • getOrderId

      @Nullable public UUID getOrderId()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      orderId
    • setOrderId

      public void setOrderId(@Nullable UUID orderId)
    • orderStatus

      public TradeActivity orderStatus(@Nullable OrderStatus orderStatus)
    • getOrderStatus

      @Nullable public OrderStatus getOrderStatus()
      Get orderStatus
      Returns:
      orderStatus
    • setOrderStatus

      public void setOrderStatus(@Nullable OrderStatus orderStatus)
    • price

      public TradeActivity price(@Nullable BigDecimal price)
    • getPrice

      @Nullable public BigDecimal getPrice()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      price
    • setPrice

      public void setPrice(@Nullable BigDecimal price)
    • qty

      public TradeActivity qty(@Nullable BigDecimal qty)
    • getQty

      @Nullable public BigDecimal getQty()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      qty
    • setQty

      public void setQty(@Nullable BigDecimal qty)
    • side

      public TradeActivity side(@Nullable OrderSide side)
    • getSide

      @Nullable public OrderSide getSide()
      Get side
      Returns:
      side
    • setSide

      public void setSide(@Nullable OrderSide side)
    • symbol

      public TradeActivity symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • transactionTime

      public TradeActivity transactionTime(@Nullable OffsetDateTime transactionTime)
    • getTransactionTime

      @Nullable public OffsetDateTime getTransactionTime()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      transactionTime
    • setTransactionTime

      public void setTransactionTime(@Nullable OffsetDateTime transactionTime)
    • type

      public TradeActivity type(@Nullable TradeActivity.TypeEnum type)
    • getType

      @Nullable public TradeActivity.TypeEnum getType()
      Valid only for trading activity types. Null for non-trading activites.
      Returns:
      type
    • setType

      public void setType(@Nullable TradeActivity.TypeEnum type)
    • putAdditionalProperty

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

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

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