# `Brasilapi.Exchange.ExchangeRate`
[🔗](https://github.com/stlucasgarcia/brasilapi-ex/blob/main/lib/brasilapi/exchange/exchange_rate.ex#L1)

Represents a single exchange rate quotation with buy/sell rates and metadata.

# `t`

```elixir
@type t() :: %Brasilapi.Exchange.ExchangeRate{
  cotacao_compra: float(),
  cotacao_venda: float(),
  data_hora_cotacao: String.t(),
  paridade_compra: number(),
  paridade_venda: number(),
  tipo_boletim: String.t()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Creates an ExchangeRate struct from API response data.

---

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