Unified currency data.
Describes a currency or token supported by an exchange, including deposit/withdraw capabilities and network information.
Fields
id- Exchange-specific currency IDcode- Unified currency code (e.g., "BTC")name- Full currency namenumeric_id- Numeric ID (some exchanges)precision- Decimal precisiontype- "crypto" or "fiat"active- Whether trading/deposit/withdraw is enableddeposit- Whether deposits are enabledwithdraw- Whether withdrawals are enabledfee- Default withdrawal feemargin- Whether margin trading is availablenetworks- Network-specific deposit/withdraw infoinfo- Raw exchange response
Summary
Types
@type t() :: %CCXT.Currency{ active: boolean() | nil, code: String.t() | nil, deposit: boolean() | nil, fee: number() | nil, id: String.t() | nil, info: map() | nil, margin: boolean() | nil, name: String.t() | nil, networks: map(), numeric_id: integer() | nil, precision: number() | nil, type: String.t() | nil, withdraw: boolean() | nil }
Functions
@spec schema() :: map()
JSON Schema for the Currency unified type.