Brasilapi.Exchange.ExchangeRate (BrasilAPI v0.1.5)

View Source

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

Summary

Functions

Creates an ExchangeRate struct from API response data.

Types

t()

@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()
}

Functions

from_map(map)

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

Creates an ExchangeRate struct from API response data.