Class CryptoPerpFuturesPricing
java.lang.Object
markets.alpaca.client.openapi.data.model.CryptoPerpFuturesPricing
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CryptoPerpFuturesPricing
extends Object
implements Serializable
Crypto perpetual futures pricing data.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CryptoPerpFuturesPricingCreate an instance of CryptoPerpFuturesPricing given an JSON stringft(OffsetDateTime ft) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getFr()Funding rate.getFt()Next funding timegetIp()Index price.getMp()Mark price.getOi()Open interest.getT()Timestamp in RFC-3339 format with nanosecond precision.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetFt(OffsetDateTime ft) voidvoidvoidvoidt(OffsetDateTime t) toJson()Convert an instance of CryptoPerpFuturesPricing 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_FR
- See Also:
-
SERIALIZED_NAME_FT
- See Also:
-
SERIALIZED_NAME_IP
- See Also:
-
SERIALIZED_NAME_MP
- See Also:
-
SERIALIZED_NAME_OI
- See Also:
-
SERIALIZED_NAME_T
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CryptoPerpFuturesPricing
public CryptoPerpFuturesPricing()
-
-
Method Details
-
fr
-
getFr
Funding rate.- Returns:
- fr
-
setFr
-
ft
-
getFt
Next funding time- Returns:
- ft
-
setFt
-
ip
-
getIp
Index price.- Returns:
- ip
-
setIp
-
mp
-
getMp
Mark price.- Returns:
- mp
-
setMp
-
oi
-
getOi
Open interest.- Returns:
- oi
-
setOi
-
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 CryptoPerpFuturesPricing 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 CryptoPerpFuturesPricing
-
fromJson
Create an instance of CryptoPerpFuturesPricing given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CryptoPerpFuturesPricing
- Throws:
IOException- if the JSON string is invalid with respect to CryptoPerpFuturesPricing
-
toJson
Convert an instance of CryptoPerpFuturesPricing to an JSON string- Returns:
- JSON string
-