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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets activityTypestatic classstatic enumfill or partial_fill -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityType(TradingActivities.ActivityTypeEnum activityType) booleanstatic TradingActivitiesCreate an instance of TradingActivities given an JSON stringGet activityTypeReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The cumulative quantity of shares involved in the execution.getId()An id for the activity.For partially_filled orders, the quantity of shares that are left to be filled.The id for the order that filled.Get orderStatusgetPrice()The per-share price that the trade was executed at.getQty()The number of shares involved in the trade execution.getSide()buy or sellThe symbol of the security being traded.The time at which the execution occurred.getType()fill or partial_fillinthashCode()orderStatus(OrderStatus orderStatus) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetActivityType(TradingActivities.ActivityTypeEnum activityType) voidvoidvoidsetLeavesQty(String leavesQty) voidsetOrderId(UUID orderId) voidsetOrderStatus(OrderStatus orderStatus) voidvoidvoidvoidvoidsetTransactionTime(OffsetDateTime transactionTime) voidtoJson()Convert an instance of TradingActivities to an JSON stringtoString()transactionTime(OffsetDateTime transactionTime) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACTIVITY_TYPE
- See Also:
-
SERIALIZED_NAME_CUM_QTY
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LEAVES_QTY
- See Also:
-
SERIALIZED_NAME_ORDER_ID
- See Also:
-
SERIALIZED_NAME_ORDER_STATUS
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SIDE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TRANSACTION_TIME
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TradingActivities
public TradingActivities()
-
-
Method Details
-
activityType
-
getActivityType
Get activityType- Returns:
- activityType
-
setActivityType
-
cumQty
-
getCumQty
The cumulative quantity of shares involved in the execution.- Returns:
- cumQty
-
setCumQty
-
id
-
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
-
leavesQty
-
getLeavesQty
For partially_filled orders, the quantity of shares that are left to be filled.- Returns:
- leavesQty
-
setLeavesQty
-
orderId
-
getOrderId
The id for the order that filled.- Returns:
- orderId
-
setOrderId
-
orderStatus
-
getOrderStatus
Get orderStatus- Returns:
- orderStatus
-
setOrderStatus
-
price
-
getPrice
The per-share price that the trade was executed at.- Returns:
- price
-
setPrice
-
qty
-
getQty
The number of shares involved in the trade execution.- Returns:
- qty
-
setQty
-
side
-
getSide
buy or sell- Returns:
- side
-
setSide
-
symbol
-
getSymbol
The symbol of the security being traded.- Returns:
- symbol
-
setSymbol
-
transactionTime
-
getTransactionTime
The time at which the execution occurred.- Returns:
- transactionTime
-
setTransactionTime
-
type
-
getType
fill or partial_fill- Returns:
- type
-
setType
-
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 TradingActivities 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 TradingActivities
-
fromJson
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
Convert an instance of TradingActivities to an JSON string- Returns:
- JSON string
-