Class TradingActivities

java.lang.Object
markets.alpaca.client.openapi.trading.model.TradingActivities
All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • TradingActivities

      public TradingActivities()
  • Method Details

    • activityType

      public TradingActivities activityType(@Nonnull TradingActivities.ActivityTypeEnum activityType)
    • getActivityType

      @Nonnull public TradingActivities.ActivityTypeEnum getActivityType()
      Get activityType
      Returns:
      activityType
    • setActivityType

      public void setActivityType(@Nonnull TradingActivities.ActivityTypeEnum activityType)
    • cumQty

      public TradingActivities cumQty(@Nullable String cumQty)
    • getCumQty

      @Nullable public String getCumQty()
      The cumulative quantity of shares involved in the execution.
      Returns:
      cumQty
    • setCumQty

      public void setCumQty(@Nullable String cumQty)
    • id

      public TradingActivities id(@Nullable String id)
    • getId

      @Nullable public String getId()
      An id for the activity. Always in \"::\" format. Can be sent as page_token in requests to facilitate the paging of results.
      Returns:
      id
    • setId

      public void setId(@Nullable String id)
    • leavesQty

      public TradingActivities leavesQty(@Nullable String leavesQty)
    • getLeavesQty

      @Nullable public String getLeavesQty()
      For partially_filled orders, the quantity of shares that are left to be filled.
      Returns:
      leavesQty
    • setLeavesQty

      public void setLeavesQty(@Nullable String leavesQty)
    • orderId

      public TradingActivities orderId(@Nullable UUID orderId)
    • getOrderId

      @Nullable public UUID getOrderId()
      The id for the order that filled.
      Returns:
      orderId
    • setOrderId

      public void setOrderId(@Nullable UUID orderId)
    • orderStatus

      public TradingActivities orderStatus(@Nullable OrderStatus orderStatus)
    • getOrderStatus

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

      public void setOrderStatus(@Nullable OrderStatus orderStatus)
    • price

      public TradingActivities price(@Nullable String price)
    • getPrice

      @Nullable public String getPrice()
      The per-share price that the trade was executed at.
      Returns:
      price
    • setPrice

      public void setPrice(@Nullable String price)
    • qty

      public TradingActivities qty(@Nullable String qty)
    • getQty

      @Nullable public String getQty()
      The number of shares involved in the trade execution.
      Returns:
      qty
    • setQty

      public void setQty(@Nullable String qty)
    • side

      public TradingActivities side(@Nullable String side)
    • getSide

      @Nullable public String getSide()
      buy or sell
      Returns:
      side
    • setSide

      public void setSide(@Nullable String side)
    • symbol

      public TradingActivities symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      The symbol of the security being traded.
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • transactionTime

      public TradingActivities transactionTime(@Nullable OffsetDateTime transactionTime)
    • getTransactionTime

      @Nullable public OffsetDateTime getTransactionTime()
      The time at which the execution occurred.
      Returns:
      transactionTime
    • setTransactionTime

      public void setTransactionTime(@Nullable OffsetDateTime transactionTime)
    • type

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

      @Nullable public TradingActivities.TypeEnum getType()
      fill or partial_fill
      Returns:
      type
    • setType

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

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

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

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