API Documentation

Stats

Get global stats

These global statistics tell about the data available on coinranking.

GET /stats

Query parameters

NameTypeDescription
referenceCurrencyUuid (optional)String

UUID of reference currency, in which all the prices are calculated. Defaults to US Dollar

Default value: yhjMzLPhuIDl

Examples

Parameters examples

Response

HTTP/1.1 200 OK
{
  "status": "success",
  "data": {
    "totalCoins": 3220,
    "totalMarkets": 27497,
    "totalExchanges": 190,
    "totalMarketCap": "425992114544",
    "total24hVolume": "23752040073"
  }
}

Response fields

NameTypeDescription
statusString

Status of the request

Allowed values:
success
dataObject
data.totalCoinsNumber

Total number of coins

data.totalMarketsNumber

Total amount of markets used for price calculation

data.totalExchangesNumber

Total amount of exchanges paired with Coinranking

data.totalMarketCapString

Market capitalization. Price times circulating supply

data.total24hVolumeString

Total trade volume in 24 hours, calculated in the reference currency

Error response

HTTP/1.1 422 Unprocessable Entity
{
  "status": "fail",
  "type": "REFERENCE_UNAVAILABLE",
  "message": "Reference currency not available"
}

Error responses

On this page