Class CryptoTrade
java.lang.Object
markets.alpaca.client.openapi.data.model.CryptoTrade
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CryptoTrade
extends Object
implements Serializable
A crypto trade.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CryptoTradeCreate an instance of CryptoTrade given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getI()Trade ID.getP()Trade price.getS()Trade size.getT()Timestamp in RFC-3339 format with nanosecond precision.getTks()Taker side: B for buyer, S for sellerinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidvoidt(OffsetDateTime t) toJson()Convert an instance of CryptoTrade 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_P
- See Also:
-
SERIALIZED_NAME_S
- See Also:
-
SERIALIZED_NAME_T
- See Also:
-
SERIALIZED_NAME_TKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CryptoTrade
public CryptoTrade()
-
-
Method Details
-
i
-
getI
Trade ID.- Returns:
- i
-
setI
-
p
-
getP
Trade price.- Returns:
- p
-
setP
-
s
-
getS
Trade size.- Returns:
- s
-
setS
-
t
-
getT
Timestamp in RFC-3339 format with nanosecond precision.- Returns:
- t
-
setT
-
tks
-
getTks
Taker side: B for buyer, S for seller- Returns:
- tks
-
setTks
-
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 CryptoTrade 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 CryptoTrade
-
fromJson
Create an instance of CryptoTrade given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CryptoTrade
- Throws:
IOException- if the JSON string is invalid with respect to CryptoTrade
-
toJson
Convert an instance of CryptoTrade to an JSON string- Returns:
- JSON string
-