Package org.knowm.xchange.dto.account
Class FundingRecord
java.lang.Object
org.knowm.xchange.dto.account.FundingRecord
- All Implemented Interfaces:
Serializable
public final class FundingRecord extends Object implements Serializable
DTO representing funding information
Funding information contains the detail of deposit/withdrawal transaction for a specific currency
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FundingRecord.Builder
static class
FundingRecord.Status
static class
FundingRecord.Type
Enum representing funding transaction type -
Constructor Summary
Constructors Constructor Description FundingRecord(String address, String addressTag, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, FundingRecord.Status status, BigDecimal balance, BigDecimal fee, String description)
Constructs aFundingRecord
.FundingRecord(String address, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, String status, BigDecimal balance, BigDecimal fee, String description)
Deprecated.Use the constructor with enum status parameter.FundingRecord(String address, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, FundingRecord.Status status, BigDecimal balance, BigDecimal fee, String description)
Constructs aFundingRecord
. -
Method Summary
Modifier and Type Method Description String
getAddress()
String
getAddressTag()
BigDecimal
getAmount()
BigDecimal
getBalance()
String
getBlockchainTransactionHash()
Currency
getCurrency()
Date
getDate()
String
getDescription()
String
getExternalId()
Deprecated.BigDecimal
getFee()
String
getInternalId()
FundingRecord.Status
getStatus()
FundingRecord.Type
getType()
String
toString()
-
Constructor Details
-
FundingRecord
@Deprecated public FundingRecord(String address, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, String status, BigDecimal balance, BigDecimal fee, String description)Deprecated.Use the constructor with enum status parameter.Constructs aFundingRecord
.- Parameters:
address
- Crypto currency address for deposit/withdrawaldate
- Date/Time of transactioncurrency
- The transaction currencyamount
- Amount deposited/withdrawn (always positive)internalId
- Internal transaction identifier, specific to the ExchangeblockchainTransactionHash
- Transaction hash/id that identifies the transaction within the public ledgertype
- Transaction TypeFundingRecord.Type
status
- Status of the transaction whenever available (e.g. Pending, Completed or any descriptive status of transaction). Will be naively converted to Status enum if possible, or else be prefixed to description.balance
- Balance of the associated account after the transaction is performedfee
- Transaction Fee Amount (always positive)description
- Description of the transaction. It is a good idea to put here any extra info sent back from the exchange that doesn't fit elsewhere so users can still access it.
-
FundingRecord
public FundingRecord(String address, String addressTag, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, FundingRecord.Status status, BigDecimal balance, BigDecimal fee, String description)Constructs aFundingRecord
.- Parameters:
address
- Crypto currency address for deposit/withdrawaladdressTag
- Crypto address destination tag for deposit/withdrawaldate
- Date/Time of transactioncurrency
- The transaction currencyamount
- Amount deposited/withdrawn (always positive)internalId
- Internal transaction identifier, specific to the ExchangeblockchainTransactionHash
- Transaction hash/id that identifies the transaction within the public ledgertype
- Transaction TypeFundingRecord.Type
status
- Status of the transaction whenever availablebalance
- Balance of the associated account after the transaction is performedfee
- Transaction Fee Amount (always positive)description
- Description of the transaction. It is a good idea to put here any extra info sent back from the exchange that doesn't fit elsewhere so users can still access it.
-
FundingRecord
public FundingRecord(String address, Date date, Currency currency, BigDecimal amount, String internalId, String blockchainTransactionHash, FundingRecord.Type type, FundingRecord.Status status, BigDecimal balance, BigDecimal fee, String description)Constructs aFundingRecord
.- Parameters:
address
- Crypto currency address for deposit/withdrawaldate
- Date/Time of transactioncurrency
- The transaction currencyamount
- Amount deposited/withdrawn (always positive)internalId
- Internal transaction identifier, specific to the ExchangeblockchainTransactionHash
- Transaction hash/id that identifies the transaction within the public ledgertype
- Transaction TypeFundingRecord.Type
status
- Status of the transaction whenever availablebalance
- Balance of the associated account after the transaction is performedfee
- Transaction Fee Amount (always positive)description
- Description of the transaction. It is a good idea to put here any extra info sent back from the exchange that doesn't fit elsewhere so users can still access it.
-
-
Method Details
-
getAddress
- Returns:
- Crypto currency address
-
getAddressTag
-
getDate
- Returns:
- Date/Time of transaction
-
getCurrency
- Returns:
- The transaction currency
-
getAmount
- Returns:
- Amount deposited/withdrawn in given transaction currency (always positive)
-
getInternalId
- Returns:
- Internal transaction identifier, specific to the Exchange.
-
getExternalId
Deprecated. -
getBlockchainTransactionHash
- Returns:
- External Transaction id that identifies the transaction within the public ledger, eg. blockchain transaction hash.
-
getType
- Returns:
- Transaction Type
FundingRecord.Type
-
getStatus
- Returns:
- Status of the transaction whenever available (e.g. Open, Completed or any descriptive status of transaction)
-
getBalance
- Returns:
- Balance of the associated account after the transaction is performed
-
getFee
- Returns:
- Transaction Fee Amount in given transaction currency (always positive)
-
getDescription
- Returns:
- Description of the transaction
-
toString
-