Class ActivityV2DetailTRD

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ActivityV2DetailTRD extends Object implements Serializable
Activity details for a fill or partial_fill event
See Also:
  • Field Details

  • Constructor Details

    • ActivityV2DetailTRD

      public ActivityV2DetailTRD()
  • Method Details

    • assetId

      public ActivityV2DetailTRD assetId(@Nullable UUID assetId)
    • getAssetId

      @Nullable public UUID getAssetId()
      Asset ID (For options this represents the option contract ID)
      Returns:
      assetId
    • setAssetId

      public void setAssetId(@Nullable UUID assetId)
    • clientOrderId

      public ActivityV2DetailTRD clientOrderId(@Nullable String clientOrderId)
    • getClientOrderId

      @Nullable public String getClientOrderId()
      Order ID provided by the customer
      Returns:
      clientOrderId
    • setClientOrderId

      public void setClientOrderId(@Nullable String clientOrderId)
    • commission

      public ActivityV2DetailTRD commission(@Nullable BigDecimal commission)
    • getCommission

      @Nullable public BigDecimal getCommission()
      Commission to collect from the account holder
      Returns:
      commission
    • setCommission

      public void setCommission(@Nullable BigDecimal commission)
    • cumQty

      public ActivityV2DetailTRD cumQty(@Nullable BigDecimal cumQty)
    • getCumQty

      @Nullable public BigDecimal getCumQty()
      Total filled quantity on the order
      Returns:
      cumQty
    • setCumQty

      public void setCumQty(@Nullable BigDecimal cumQty)
    • cusip

      public ActivityV2DetailTRD cusip(@Nullable String cusip)
    • getCusip

      @Nullable public String getCusip()
      CUSIP of the security involved with the activity
      Returns:
      cusip
    • setCusip

      public void setCusip(@Nullable String cusip)
    • executionType

      public ActivityV2DetailTRD executionType(@Nullable ActivityV2DetailTRD.ExecutionTypeEnum executionType)
    • getExecutionType

      @Nullable public ActivityV2DetailTRD.ExecutionTypeEnum getExecutionType()
      The execution type
      Returns:
      executionType
    • setExecutionType

      public void setExecutionType(@Nullable ActivityV2DetailTRD.ExecutionTypeEnum executionType)
    • leavesQty

      public ActivityV2DetailTRD leavesQty(@Nullable BigDecimal leavesQty)
    • getLeavesQty

      @Nullable public BigDecimal getLeavesQty()
      Unfilled quantity on the order, when order is filled value could be 0
      Returns:
      leavesQty
    • setLeavesQty

      public void setLeavesQty(@Nullable BigDecimal leavesQty)
    • orderId

      public ActivityV2DetailTRD orderId(@Nullable UUID orderId)
    • getOrderId

      @Nullable public UUID getOrderId()
      Order ID generated by Alpaca
      Returns:
      orderId
    • setOrderId

      public void setOrderId(@Nullable UUID orderId)
    • orderStatus

      public ActivityV2DetailTRD orderStatus(@Nullable String orderStatus)
    • getOrderStatus

      @Nullable public String getOrderStatus()
      Identifies the current status of the order
      Returns:
      orderStatus
    • setOrderStatus

      public void setOrderStatus(@Nullable String orderStatus)
    • side

      public ActivityV2DetailTRD side(@Nullable ActivityV2DetailTRD.SideEnum side)
    • getSide

      @Nullable public ActivityV2DetailTRD.SideEnum getSide()
      Represents what side of the transaction an order was on
      Returns:
      side
    • setSide

      public void setSide(@Nullable ActivityV2DetailTRD.SideEnum side)
    • symbol

      public ActivityV2DetailTRD symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      The symbol of the security involved with the activity
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • putAdditionalProperty

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

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

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