Class TradingActivities
java.lang.Object
net.jacobpeterson.alpaca.openapi.trader.model.TradingActivities
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-03-23T18:58:49.391307-07:00[America/Los_Angeles]")
public class TradingActivities
extends Object
TradingActivities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
fill or partial_fill -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Predicate
<com.google.gson.JsonElement> static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityType
(ActivityType activityType) boolean
static TradingActivities
Create an instance of TradingActivities given an JSON stringGet activityTypeThe 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_fillint
hashCode()
orderStatus
(OrderStatus orderStatus) void
setActivityType
(ActivityType activityType) void
void
void
setLeavesQty
(String leavesQty) void
setOrderId
(UUID orderId) void
setOrderStatus
(OrderStatus orderStatus) void
void
void
void
void
setTransactionTime
(OffsetDateTime transactionTime) void
toJson()
Convert an instance of TradingActivities to an JSON stringtoString()
transactionTime
(OffsetDateTime transactionTime) static void
validateJsonElement
(com.google.gson.JsonElement jsonElement)
-
Field Details
-
SERIALIZED_NAME_ACTIVITY_TYPE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CUM_QTY
- See Also:
-
SERIALIZED_NAME_LEAVES_QTY
- 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_ORDER_ID
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ORDER_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
validate
public static boolean validate -
isValid
-
-
Constructor Details
-
TradingActivities
public TradingActivities()
-
-
Method Details
-
activityType
-
getActivityType
Get activityType- Returns:
- activityType
-
setActivityType
-
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
-
cumQty
-
getCumQty
The cumulative quantity of shares involved in the execution.- Returns:
- cumQty
-
setCumQty
-
leavesQty
-
getLeavesQty
For partially_filled orders, the quantity of shares that are left to be filled.- Returns:
- leavesQty
-
setLeavesQty
-
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
-
orderId
-
getOrderId
The id for the order that filled.- Returns:
- orderId
-
setOrderId
-
type
-
getType
fill or partial_fill- Returns:
- type
-
setType
-
orderStatus
-
getOrderStatus
Get orderStatus- Returns:
- orderStatus
-
setOrderStatus
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
- Throws:
IOException
-
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
-