Class StockV3Trade
java.lang.Object
markets.alpaca.client.openapi.data.model.StockV3Trade
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class StockV3Trade
extends Object
implements Serializable
A trade print published by an execution venue. Trades may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StockV3TradeCreate an instance of StockV3Trade given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getI()Trade ID.getM()MIC of the execution venue that published the print.getP()Trade price, in the native quotation currency.getS()Number of shares traded.getT()Timestamp in RFC-3339 format with nanosecond precision.inthashCode()p(BigDecimal p) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.s(BigDecimal s) voidvoidvoidsetP(BigDecimal p) voidsetS(BigDecimal s) voidt(OffsetDateTime t) toJson()Convert an instance of StockV3Trade 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_I
- See Also:
-
SERIALIZED_NAME_M
- See Also:
-
SERIALIZED_NAME_P
- See Also:
-
SERIALIZED_NAME_S
- See Also:
-
SERIALIZED_NAME_T
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StockV3Trade
public StockV3Trade()
-
-
Method Details
-
i
-
getI
Trade ID. Omitted when the venue does not publish one.- Returns:
- i
-
setI
-
m
-
getM
MIC of the execution venue that published the print. It can differ from the listing MIC in the symbol.- Returns:
- m
-
setM
-
p
-
getP
Trade price, in the native quotation currency.- Returns:
- p
-
setP
-
s
-
getS
Number of shares traded.- Returns:
- s
-
setS
-
t
-
getT
Timestamp in RFC-3339 format with nanosecond precision.- Returns:
- t
-
setT
-
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 StockV3Trade 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 StockV3Trade
-
fromJson
Create an instance of StockV3Trade given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockV3Trade
- Throws:
IOException- if the JSON string is invalid with respect to StockV3Trade
-
toJson
Convert an instance of StockV3Trade to an JSON string- Returns:
- JSON string
-