Criptomoedas

Cotação de criptomoedas

Changed on

Cotaçã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.

get/api/v2/crypto

Request

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

Query parameters

coinstring

Siglas das criptomoedas, separadas por vírgula. Ex.: BTC,ETH.

Example:BTC,ETH
currencystring

Moeda da cotação, como BRL, USD ou EUR. Padrão: BRL.

Example:BRL
startDatestring

Data inicial do histórico diário no formato YYYY-MM-DD. Use sem range.

Example:2020-01-01
endDatestring

Data final inclusiva do histórico diário no formato YYYY-MM-DD. Padrão: hoje.

Example:2026-10-04
rangestring

Período do histórico, como 5d, 1mo ou 1y. Padrão: 1mo quando há histórico.

intervalstring

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.

requestedAtstring date-time required

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

tookinteger required

Tempo de processamento, em milissegundos.

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 query request parameter endDate

    • info

      added the new optional query request parameter startDate

    • breaking

      for the query request parameter currency, default value BRL was removed

    • breaking

      removed the enum value 10y from the query request parameter range

    • breaking

      removed the enum value 15m from the query request parameter interval

    • breaking

      removed the enum value 1d from the query request parameter interval

    • breaking

      removed the enum value 1d from the query request parameter range

    • breaking

      removed the enum value 1h from the query request parameter interval

    • breaking

      removed the enum value 1m from the query request parameter interval

    • breaking

      removed the enum value 1mo from the query request parameter interval

    • breaking

      removed the enum value 1mo from the query request parameter range

    • breaking

      removed the enum value 1wk from the query request parameter interval

    • breaking

      removed the enum value 1y from the query request parameter range

    • breaking

      removed the enum value 2m from the query request parameter interval

    • breaking

      removed the enum value 2y from the query request parameter range

    • breaking

      removed the enum value 30m from the query request parameter interval

    • breaking

      removed the enum value 3mo from the query request parameter interval

    • breaking

      removed the enum value 3mo from the query request parameter range

    • breaking

      removed the enum value 5d from the query request parameter interval

    • breaking

      removed the enum value 5d from the query request parameter range

    • breaking

      removed the enum value 5m from the query request parameter interval

    • breaking

      removed the enum value 5y from the query request parameter range

    • breaking

      removed the enum value 60m from the query request parameter interval

    • breaking

      removed the enum value 6mo from the query request parameter range

    • breaking

      removed the enum value 90m from the query request parameter interval

    • breaking

      removed the enum value max from the query request parameter range

    • breaking

      removed the enum value ytd from the query request parameter range

    • 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

      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 from url to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the //// response's property format changed from float to no format for status

    • breaking

      the //// response's property format changed from float to no format for status

    • breaking

      the //// response's property format changed from int64 to no format for status

    • breaking

      the //// response's property format changed from float to no format for status

    • breaking

      the //// response's property format changed from float to no format for status

    • breaking

      the //// response's property format changed from float to no format for status

    • breaking

      the //// response's property type changed from integer to number, and format from int64 to no format for status

    • breaking

      the // response's property type changed from integer to number, and format from int64 to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the // response's property format changed from float to no format for status

    • breaking

      the // response's property format changed from date-time to no format for status

    • breaking

      the // response's property type changed from integer to number, and format from int64 to 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 query request parameter token

    • info

      api operation id getCryptoQuote removed and replaced with getCrypto

    • info

      the endpoint scheme security Bearer was added to the API

    • info

      the endpoint scheme security BearerAuth was removed from the API

    • info

      the query request parameter coin 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

      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