Câmbio

Cotação de câmbio

Changed on

Cotação atual de pares de moedas, com preço de compra, preço de venda, máxima, mínima e variação do dia. Os pares cobertos pelo Banco Central usam a PTAX.

Use para converter valores, mostrar o dólar do dia e atualizar planilhas.

Informe os pares em currency no formato ORIGEM-DESTINO, como USD-BRL,EUR-BRL. Os números vêm como texto.

A diferença entre bidPrice e askPrice é o spread de referência. Bancos e casas de câmbio cobram um spread maior.

Veja os pares em listar pares e a série diária em histórico de câmbio. Planos Startup e Pro.

get/api/v2/currency

Request

  • Base URL
    https://brapi.dev
  • URL
    https://brapi.dev/api/v2/currency
  • Auth
    HTTP bearer

Query parameters

currencystring

Pares no formato ORIGEM-DESTINO, separados por vírgula. Ex.: USD-BRL,EUR-BRL.

Example:USD-BRL

Response

Cotações dos pares de moedas solicitados retornadas com sucesso.

requestedAtstring date-time required

Data e hora da requisição em ISO 8601.

tookinteger required

Tempo de processamento, em milissegundos.

Example response

{
  "currency": [
    {
      "fromCurrency": "USD",
      "toCurrency": "BRL",
      "name": "Dólar Americano/Real Brasileiro",
      "high": "5.343",
      "low": "5.20858",
      "bidVariation": "-0.0546",
      "percentageChange": "-1.035958",
      "bidPrice": "5.2159",
      "askPrice": "5.2189",
      "updatedAtTimestamp": "1770415348",
      "updatedAtDate": "2026-02-06 19:02:28"
    },
    {
      "fromCurrency": "EUR",
      "toCurrency": "BRL",
      "name": "Euro/Real Brasileiro",
      "high": "6.1915",
      "low": "6.15764",
      "bidVariation": "0.03386",
      "percentageChange": "0.549886",
      "bidPrice": "6.1915",
      "askPrice": "6.2415",
      "updatedAtTimestamp": "1770527911",
      "updatedAtDate": "2026-02-08 02:18:31"
    }
  ],
  "requestedAt": "2026-02-08T16:26:24.131Z",
  "took": 27
}

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      deleted the query request parameter token

    • info

      api operation id getCurrencyQuote removed and replaced with getCurrency

    • info

      the endpoint scheme security Bearer was added to the API

    • info

      the endpoint scheme security BearerAuth was removed from the API

    • info

      api tag Câmbio added

    • info

      api tag Moedas removed

    • info

      the query request parameter currency became optional

    • info

      added subschema #2 to the response body allOf list for the response status

    • info

      added subschema #2 to the response body allOf list for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status