GET /public/stats
Name | Type | Description |
---|---|---|
base (optional) | String |
Base currency Default value: USDAllowed values: USD EUR JPY BTC ETH etc. |
curl
- Example:
curl -X GET \
'https://api.coinranking.com/v1/public/stats?base=EUR'
Name | Type | Description |
---|---|---|
status | String |
Status of the request Allowed values: success |
data | Object |
|
data.totalCoins | Number |
Total number of coins |
data.totalMarkets | Number |
Total amount of markets used for price calculation |
data.totalExchanges | Number |
Total amount of exchanges paired with Coinranking |
data.totalMarketCap | Number |
Market capitalization. Price times circulating supply |
data.total24hVolume | Number |
Total trade volume in 24 hours |
Response:
HTTP/1.1 200 OK
{
"status":"success",
"data": {
"totalCoins": 3220,
"totalMarkets": 27497,
"totalExchanges": 190,
"totalMarketCap": 425992114544,
"total24hVolume": 23752040073
}
}
Error
Name | Type | Description |
---|---|---|
status | String |
Status of the request Allowed values: fail error |
type | String |
Error code Allowed values: VALIDATION_ERROR BASE_UNAVAILABLE |
message | String |
Human readable error message |
Response:
HTTP/1.1 422 Unprocessable Entity
{
"status": "fail",
"type": "BASE_UNAVAILABLE",
"message": "Base not available"
}