Class CryptoTransfer
java.lang.Object
markets.alpaca.client.openapi.trading.model.CryptoTransfer
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CryptoTransfer
extends Object
implements Serializable
Transfers allow you to transfer assets into your end customer's account (deposits) or out (withdrawal).
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) direction(TransferDirection direction) booleanfromAddress(String fromAddress) static CryptoTransferCreate an instance of CryptoTransfer given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Amount of transfer denominated in the underlying crypto assetgetAsset()Symbol of crypto asset for given transfer (e.g.getChain()Underlying network for given transferTimestamp when transfer was createdGet directiongetFees()Get feesOriginating address of the transfergetId()The crypto transfer IDGet networkFeeGet statusDestination address of the transferOn-chain transaction hash (e.g.Equivalent USD value at time of transferinthashCode()networkFee(String networkFee) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetDirection(TransferDirection direction) voidvoidsetFromAddress(String fromAddress) voidvoidsetNetworkFee(String networkFee) voidsetStatus(CryptoTransferStatus status) voidsetToAddress(String toAddress) voidvoidsetUsdValue(String usdValue) status(CryptoTransferStatus status) toJson()Convert an instance of CryptoTransfer 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_AMOUNT
- See Also:
-
SERIALIZED_NAME_ASSET
- See Also:
-
SERIALIZED_NAME_CHAIN
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
SERIALIZED_NAME_FEES
- See Also:
-
SERIALIZED_NAME_FROM_ADDRESS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NETWORK_FEE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TO_ADDRESS
- See Also:
-
SERIALIZED_NAME_TX_HASH
- See Also:
-
SERIALIZED_NAME_USD_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CryptoTransfer
public CryptoTransfer()
-
-
Method Details
-
amount
-
getAmount
Amount of transfer denominated in the underlying crypto asset- Returns:
- amount
-
setAmount
-
asset
-
getAsset
Symbol of crypto asset for given transfer (e.g. BTC)- Returns:
- asset
-
setAsset
-
chain
-
getChain
Underlying network for given transfer- Returns:
- chain
-
setChain
-
createdAt
-
getCreatedAt
Timestamp when transfer was created- Returns:
- createdAt
-
setCreatedAt
-
direction
-
getDirection
Get direction- Returns:
- direction
-
setDirection
-
fees
-
getFees
Get fees- Returns:
- fees
-
setFees
-
fromAddress
-
getFromAddress
Originating address of the transfer- Returns:
- fromAddress
-
setFromAddress
-
id
-
getId
The crypto transfer ID- Returns:
- id
-
setId
-
networkFee
-
getNetworkFee
Get networkFee- Returns:
- networkFee
-
setNetworkFee
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
toAddress
-
getToAddress
Destination address of the transfer- Returns:
- toAddress
-
setToAddress
-
txHash
-
getTxHash
On-chain transaction hash (e.g. 0xabc...xyz)- Returns:
- txHash
-
setTxHash
-
usdValue
-
getUsdValue
Equivalent USD value at time of transfer- Returns:
- usdValue
-
setUsdValue
-
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 CryptoTransfer 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 CryptoTransfer
-
fromJson
Create an instance of CryptoTransfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CryptoTransfer
- Throws:
IOException- if the JSON string is invalid with respect to CryptoTransfer
-
toJson
Convert an instance of CryptoTransfer to an JSON string- Returns:
- JSON string
-