# `CCXT.Conversion`
[🔗](https://github.com/ZenHive/ccxt_client/blob/main/lib/ccxt/conversion.ex#L1)

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

# `t`

```elixir
@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
}
```

# `schema`

```elixir
@spec schema() :: map()
```

JSON Schema for the Conversion unified type.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
