Unified deposit/withdrawal transaction data.
Represents a deposit or withdrawal on an exchange.
Fields
id- Exchange transaction IDtxid- Blockchain transaction hashtimestamp- Transaction time in millisecondsdatetime- ISO 8601 datetime stringaddress- Destination addressaddress_from- Source addressaddress_to- Destination addresstag- Destination tag/memotag_from- Source tag/memotag_to- Destination tag/memotype- "deposit" or "withdrawal"amount- Transaction amountcurrency- Currency code (e.g., "BTC")status- "pending", "ok", "failed", "canceled"updated- Last update timestamp in millisecondsfee- Transaction feenetwork- Blockchain networkcomment- Transaction comment/noteinternal- Whether this is an internal transferinfo- Raw exchange response
Summary
Functions
Returns true if this is a deposit.
Returns true if the transaction is pending.
JSON Schema for the Transaction unified type.
Returns true if this is a withdrawal.
Types
@type t() :: %CCXT.Transaction{ address: String.t() | nil, address_from: String.t() | nil, address_to: String.t() | nil, amount: number() | nil, comment: String.t() | nil, currency: String.t() | nil, datetime: String.t() | nil, fee: CCXT.Fee.t() | nil, id: String.t() | nil, info: map() | nil, internal: boolean() | nil, network: String.t() | nil, status: String.t() | nil, tag: String.t() | nil, tag_from: String.t() | nil, tag_to: String.t() | nil, timestamp: integer() | nil, txid: String.t() | nil, type: String.t() | nil, updated: integer() | nil }
Functions
Returns true if this is a deposit.
Returns true if the transaction is pending.
@spec schema() :: map()
JSON Schema for the Transaction unified type.
Returns true if this is a withdrawal.