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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe execution typestatic enumRepresents what side of the transaction an order was on -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientOrderId(String clientOrderId) commission(BigDecimal commission) cumQty(BigDecimal cumQty) booleanexecutionType(ActivityV2DetailTRD.ExecutionTypeEnum executionType) static ActivityV2DetailTRDCreate an instance of ActivityV2DetailTRD given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Asset ID (For options this represents the option contract ID)Order ID provided by the customerCommission to collect from the account holderTotal filled quantity on the ordergetCusip()CUSIP of the security involved with the activityThe execution typeUnfilled quantity on the order, when order is filled value could be 0Order ID generated by AlpacaIdentifies the current status of the ordergetSide()Represents what side of the transaction an order was onThe symbol of the security involved with the activityinthashCode()leavesQty(BigDecimal leavesQty) orderStatus(String orderStatus) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAssetId(UUID assetId) voidsetClientOrderId(String clientOrderId) voidsetCommission(BigDecimal commission) voidsetCumQty(BigDecimal cumQty) voidvoidsetExecutionType(ActivityV2DetailTRD.ExecutionTypeEnum executionType) voidsetLeavesQty(BigDecimal leavesQty) voidsetOrderId(UUID orderId) voidsetOrderStatus(String orderStatus) voidvoidtoJson()Convert an instance of ActivityV2DetailTRD to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ASSET_ID
- See Also:
-
SERIALIZED_NAME_CLIENT_ORDER_ID
- See Also:
-
SERIALIZED_NAME_COMMISSION
- See Also:
-
SERIALIZED_NAME_CUM_QTY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_EXECUTION_TYPE
- See Also:
-
SERIALIZED_NAME_LEAVES_QTY
- See Also:
-
SERIALIZED_NAME_ORDER_ID
- See Also:
-
SERIALIZED_NAME_ORDER_STATUS
- See Also:
-
SERIALIZED_NAME_SIDE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ActivityV2DetailTRD
public ActivityV2DetailTRD()
-
-
Method Details
-
assetId
-
getAssetId
Asset ID (For options this represents the option contract ID)- Returns:
- assetId
-
setAssetId
-
clientOrderId
-
getClientOrderId
Order ID provided by the customer- Returns:
- clientOrderId
-
setClientOrderId
-
commission
-
getCommission
Commission to collect from the account holder- Returns:
- commission
-
setCommission
-
cumQty
-
getCumQty
Total filled quantity on the order- Returns:
- cumQty
-
setCumQty
-
cusip
-
getCusip
CUSIP of the security involved with the activity- Returns:
- cusip
-
setCusip
-
executionType
public ActivityV2DetailTRD executionType(@Nullable ActivityV2DetailTRD.ExecutionTypeEnum executionType) -
getExecutionType
The execution type- Returns:
- executionType
-
setExecutionType
-
leavesQty
-
getLeavesQty
Unfilled quantity on the order, when order is filled value could be 0- Returns:
- leavesQty
-
setLeavesQty
-
orderId
-
getOrderId
Order ID generated by Alpaca- Returns:
- orderId
-
setOrderId
-
orderStatus
-
getOrderStatus
Identifies the current status of the order- Returns:
- orderStatus
-
setOrderStatus
-
side
-
getSide
Represents what side of the transaction an order was on- Returns:
- side
-
setSide
-
symbol
-
getSymbol
The symbol of the security involved with the activity- Returns:
- symbol
-
setSymbol
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the ActivityV2DetailTRD instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of ActivityV2DetailTRD to an JSON string- Returns:
- JSON string
-