Cotação de criptomoedas
Changed onCotação de uma ou mais criptomoedas, com preço, variação, máxima, mínima e volume de 24 horas. O preço vem na moeda de currency, com BRL como padrão.
Use para mostrar preços de cripto, montar carteiras e gerar gráficos.
Peça várias moedas em coin, como coin=BTC,ETH,SOL. Para o histórico, passe range ou interval, como range=1mo&interval=1d. A resposta traz os pontos em historicalDataPrice e o período aplicado em usedRange e usedInterval. Intervalos curtos limitam o período.
O histórico diário aceita startDate e endDate no formato YYYY-MM-DD, com interval=1d ou sem intervalo. Use datas sem range. Sem data inicial, o período é de 30 dias até a data final. As datas são inclusivas. usedRange vem como custom em consultas por data. range=max&interval=1d retorna todos os dias disponíveis, sem limite de 1.000 pontos. O histórico diário inclui somente dias completos em UTC. A primeira data depende da criptomoeda. Se a cotação atual estiver indisponível, os campos de cotação usam o último dia completo disponível. Nesse caso, a variação e o volume também correspondem a esse dia em UTC. Confira a data em regularMarketTime.
Cripto negocia 24 horas por dia. A variação é uma janela móvel de 24 horas. O histórico usa o câmbio diário da data de fechamento em UTC. Em dias sem cotação de câmbio, usa a última cotação disponível até essa data. Todos os preços de um ponto usam esse câmbio. Moedas vinculadas ao dólar usam paridade de 1:1 com USD. A conversão histórica aceita BRL, USD, EUR, GBP, JPY, CHF, CAD, AUD, DKK, NOK e SEK. Sem câmbio histórico disponível, os preços do ponto vêm como null. O campo currencyRateFromUSD informa o câmbio atual, não o câmbio de cada ponto histórico. marketCap vem sempre como 0.
Uma sigla indisponível retorna 400, inclusive em chamadas com várias siglas. Uma cotação ausente ou inválida retorna 503.
Veja as siglas em listar criptomoedas. Planos Startup e Pro. Os períodos e intervalos aceitos dependem do plano.
Request
- Base URLhttps://brapi.dev
- URLhttps://brapi.dev/api/v2/crypto
- AuthHTTP bearer
Query parameters
Siglas das criptomoedas, separadas por vírgula. Ex.: BTC,ETH.
Moeda da cotação, como BRL, USD ou EUR. Padrão: BRL.
Data inicial do histórico diário no formato YYYY-MM-DD. Use sem range.
Data final inclusiva do histórico diário no formato YYYY-MM-DD. Padrão: hoje.
Período do histórico, como 5d, 1mo ou 1y. Padrão: 1mo quando há histórico.
Intervalo entre os pontos do histórico, como 1h ou 1d. Padrão: 1d.
Response
Cotações das criptomoedas solicitadas na moeda especificada retornadas com sucesso.
Example response
{
"coins": [
{
"currency": "BRL",
"currencyRateFromUSD": 5.2159,
"coinName": "Bitcoin",
"coinImageUrl": "https://cdn.jsdelivr.net/gh/spothq/cryptocurrency-icons@master/svg/color/btc.svg",
"coin": "BTC",
"regularMarketChange": 9553.84,
"regularMarketPrice": 371028.28,
"regularMarketChangePercent": 2.64,
"regularMarketDayLow": 359613.69,
"regularMarketDayHigh": 372616.12,
"regularMarketDayRange": "359613.69 - 372616.12",
"regularMarketVolume": 199263021357.47,
"marketCap": 0,
"regularMarketTime": "2026-02-08T16:24:00.000Z"
}
],
"requestedAt": "2026-02-08T16:26:22.155Z",
"took": 350
}Changes
- info
added the new optional
queryrequest parameterendDate - info
added the new optional
queryrequest parameterstartDate
- info
- breaking
for the
queryrequest parametercurrency, default valueBRLwas removed - breaking
removed the enum value
10yfrom thequeryrequest parameterrange - breaking
removed the enum value
15mfrom thequeryrequest parameterinterval - breaking
removed the enum value
1dfrom thequeryrequest parameterinterval - breaking
removed the enum value
1dfrom thequeryrequest parameterrange - breaking
removed the enum value
1hfrom thequeryrequest parameterinterval - breaking
removed the enum value
1mfrom thequeryrequest parameterinterval - breaking
removed the enum value
1mofrom thequeryrequest parameterinterval - breaking
removed the enum value
1mofrom thequeryrequest parameterrange - breaking
removed the enum value
1wkfrom thequeryrequest parameterinterval - breaking
removed the enum value
1yfrom thequeryrequest parameterrange - breaking
removed the enum value
2mfrom thequeryrequest parameterinterval - breaking
removed the enum value
2yfrom thequeryrequest parameterrange - breaking
removed the enum value
30mfrom thequeryrequest parameterinterval - breaking
removed the enum value
3mofrom thequeryrequest parameterinterval - breaking
removed the enum value
3mofrom thequeryrequest parameterrange - breaking
removed the enum value
5dfrom thequeryrequest parameterinterval - breaking
removed the enum value
5dfrom thequeryrequest parameterrange - breaking
removed the enum value
5mfrom thequeryrequest parameterinterval - breaking
removed the enum value
5yfrom thequeryrequest parameterrange - breaking
removed the enum value
60mfrom thequeryrequest parameterinterval - breaking
removed the enum value
6mofrom thequeryrequest parameterrange - breaking
removed the enum value
90mfrom thequeryrequest parameterinterval - breaking
removed the enum value
maxfrom thequeryrequest parameterrange - breaking
removed the enum value
ytdfrom thequeryrequest parameterrange - 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
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the
//response's property format changed fromurlto no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
////response's property format changed fromfloatto no format for status - breaking
the
////response's property format changed fromfloatto no format for status - breaking
the
////response's property format changed fromint64to no format for status - breaking
the
////response's property format changed fromfloatto no format for status - breaking
the
////response's property format changed fromfloatto no format for status - breaking
the
////response's property format changed fromfloatto no format for status - breaking
the
////response's property type changed fromintegertonumber, and format fromint64to no format for status - breaking
the
//response's property type changed fromintegertonumber, and format fromint64to no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
//response's property format changed fromfloatto no format for status - breaking
the
//response's property format changed fromdate-timeto no format for status - breaking
the
//response's property type changed fromintegertonumber, and format fromint64to no format 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
getCryptoQuoteremoved and replaced withgetCrypto - info
the endpoint scheme security
Bearerwas added to the API - info
the endpoint scheme security
BearerAuthwas removed from the API - info
the
queryrequest parametercoinbecame 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
added the non-success response with the status
- info
removed the non-success response with the status
- info
the response property
became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
////became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for 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