CCXT.Conversion (ccxt_client v0.6.1)

Copy Markdown View Source

Unified currency conversion data.

Represents a convert trade (currency swap) on an exchange.

Fields

  • id - Conversion ID
  • timestamp - Conversion time in milliseconds
  • datetime - ISO 8601 datetime string
  • from_currency - Source currency code
  • from_amount - Source amount
  • to_currency - Destination currency code
  • to_amount - Destination amount
  • price - Conversion rate
  • fee - Conversion fee amount
  • info - Raw exchange response

Summary

Functions

JSON Schema for the Conversion unified type.

Types

t()

@type t() :: %CCXT.Conversion{
  datetime: String.t() | nil,
  fee: number() | nil,
  from_amount: number() | nil,
  from_currency: String.t() | nil,
  id: String.t() | nil,
  info: map() | nil,
  price: number() | nil,
  timestamp: integer() | nil,
  to_amount: number() | nil,
  to_currency: String.t() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the Conversion unified type.