Class TradeActivity
java.lang.Object
markets.alpaca.client.openapi.broker.model.TradeActivity
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class TradeActivity
extends Object
implements Serializable
TradeActivity
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumValid only for trading activity types. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncumQty(BigDecimal cumQty) booleanstatic TradeActivityCreate an instance of TradeActivity given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Valid only for trading activity types.Valid only for trading activity types.Valid only for trading activity types.Get orderStatusgetPrice()Valid only for trading activity types.getQty()Valid only for trading activity types.getSide()Get sideValid only for trading activity types.Valid only for trading activity types.getType()Valid only for trading activity types.inthashCode()leavesQty(BigDecimal leavesQty) orderStatus(OrderStatus orderStatus) price(BigDecimal price) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidsetCumQty(BigDecimal cumQty) voidsetLeavesQty(BigDecimal leavesQty) voidsetOrderId(UUID orderId) voidsetOrderStatus(OrderStatus orderStatus) voidsetPrice(BigDecimal price) voidsetQty(BigDecimal qty) voidvoidvoidsetTransactionTime(OffsetDateTime transactionTime) voidtoJson()Convert an instance of TradeActivity to an JSON stringtoString()transactionTime(OffsetDateTime transactionTime) type(TradeActivity.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CUM_QTY
- 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
-
TradeActivity
public TradeActivity()
-
-
Method Details
-
cumQty
-
getCumQty
Valid only for trading activity types. Null for non-trading activites.- Returns:
- cumQty
-
setCumQty
-
leavesQty
-
getLeavesQty
Valid only for trading activity types. Null for non-trading activites.- Returns:
- leavesQty
-
setLeavesQty
-
orderId
-
getOrderId
Valid only for trading activity types. Null for non-trading activites.- Returns:
- orderId
-
setOrderId
-
orderStatus
-
getOrderStatus
Get orderStatus- Returns:
- orderStatus
-
setOrderStatus
-
price
-
getPrice
Valid only for trading activity types. Null for non-trading activites.- Returns:
- price
-
setPrice
-
qty
-
getQty
Valid only for trading activity types. Null for non-trading activites.- Returns:
- qty
-
setQty
-
side
-
getSide
Get side- Returns:
- side
-
setSide
-
symbol
-
getSymbol
Valid only for trading activity types. Null for non-trading activites.- Returns:
- symbol
-
setSymbol
-
transactionTime
-
getTransactionTime
Valid only for trading activity types. Null for non-trading activites.- Returns:
- transactionTime
-
setTransactionTime
-
type
-
getType
Valid only for trading activity types. Null for non-trading activites.- 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 TradeActivity 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 TradeActivity
-
fromJson
Create an instance of TradeActivity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TradeActivity
- Throws:
IOException- if the JSON string is invalid with respect to TradeActivity
-
toJson
Convert an instance of TradeActivity to an JSON string- Returns:
- JSON string
-