Cotação de câmbio
Changed onCotaçã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.
Request
- Base URLhttps://brapi.dev
- URLhttps://brapi.dev/api/v2/currency
- AuthHTTP bearer
Query parameters
Pares no formato ORIGEM-DESTINO, separados por vírgula. Ex.: USD-BRL,EUR-BRL.
Response
Cotações dos pares de moedas solicitados retornadas com sucesso.
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
objectto no type for status - breaking
the response's body type changed from
objectto 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
queryrequest parametertoken - info
api operation id
getCurrencyQuoteremoved and replaced withgetCurrency - info
the endpoint scheme security
Bearerwas added to the API - info
the endpoint scheme security
BearerAuthwas removed from the API - info
api tag
Câmbioadded - info
api tag
Moedasremoved - info
the
queryrequest parametercurrencybecame optional - info
added
subschema #2to the response bodyallOflist for the response status - info
added
subschema #2to the response bodyallOflist 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
- breaking