Class TradeUpdateEventV2Leg
java.lang.Object
markets.alpaca.client.openapi.broker.model.TradeUpdateEventV2Leg
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class TradeUpdateEventV2Leg
extends Object
implements Serializable
Represents filled qty/price of legs.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecutionId(UUID executionId) static TradeUpdateEventV2LegCreate an instance of TradeUpdateEventV2Leg given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Corresponding execution of an order.Order UUIDgetPrice()The average price per share for this event.getQty()The amount of shares filled for this eventSymbol of an assetTimestamp of this event leginthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetExecutionId(UUID executionId) voidsetOrderId(UUID orderId) voidvoidvoidvoidsetTimestamp(OffsetDateTime timestamp) timestamp(OffsetDateTime timestamp) toJson()Convert an instance of TradeUpdateEventV2Leg 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_EXECUTION_ID
- See Also:
-
SERIALIZED_NAME_ORDER_ID
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TradeUpdateEventV2Leg
public TradeUpdateEventV2Leg()
-
-
Method Details
-
executionId
-
getExecutionId
Corresponding execution of an order. If an order gets filled over two executions (a partial_fill for example), you will receive two events with different IDs.- Returns:
- executionId
-
setExecutionId
-
orderId
-
getOrderId
Order UUID- Returns:
- orderId
-
setOrderId
-
price
-
getPrice
The average price per share for this event.- Returns:
- price
-
setPrice
-
qty
-
getQty
The amount of shares filled for this event- Returns:
- qty
-
setQty
-
symbol
-
getSymbol
Symbol of an asset- Returns:
- symbol
-
setSymbol
-
timestamp
-
getTimestamp
Timestamp of this event leg- Returns:
- timestamp
-
setTimestamp
-
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 TradeUpdateEventV2Leg 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 TradeUpdateEventV2Leg
-
fromJson
Create an instance of TradeUpdateEventV2Leg given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TradeUpdateEventV2Leg
- Throws:
IOException- if the JSON string is invalid with respect to TradeUpdateEventV2Leg
-
toJson
Convert an instance of TradeUpdateEventV2Leg to an JSON string- Returns:
- JSON string
-