With the global trading volume history endpoint, you can retrieve historical cryptocurrency trading data, enabling you to analyze market trends and track cryptocurrency trading activity over time.
On Coinranking, we use this endpoint on our global trading volume chart.
https://api.coinranking.com/v2/stats/global-trading-volumes
Parameter | Description |
---|---|
referenceCurrencyUuid (optional) String |
UUID of coin (either fiat or crypto), in which all the trading volumes are calculated. Defaults to US Dollar, but you can use any coin. You can find UUIDs for reference currencies in any coin endpoint, including a convenient dedicated reference currency endpoint Default value: yhjMzLPhuIDlExample:
...stats/global-trading-volumes?referenceCurrencyUuid=5k-_VTxqtCEI
|
interval (optional) String |
The interval determines the time period over which each trading volume item is calculated.
Allowed values: day week month Example:
...stats/global-trading-volumes?interval=day
|
limit (optional) Number |
Limit. Limit the amount of time periods for which the intervalVolume are retrieved. For example, when interval=day and limit is 10, data will be returned for the last 10 days. The maximum amount of results you can fetch in one request is 1000 for the Startup and Professional plan, and 100 for the Free plan. Default value: 50Size range: 1-1000 Example:
...stats/global-trading-volumes?limit=10
|
jsonHTTP/1.1 200 OK
{
"status": "success",
"data": [
{
"timestamp": 1742947200,
"intervalVolume": "68304365278.00"
},
{
"timestamp": 1743033600,
"intervalVolume": "64019945571.00"
},
{
"timestamp": 1743120000,
"intervalVolume": "32021315171.25"
}
]
}
Property | Description |
---|---|
status String |
Status of the request Allowed values:success |
data Object |
|
data.timestamp Number |
An Epoch timestamp in seconds |
data.intervalVolume String/null |
The total trading volume within the requested time interval in the reference currency |
jsonHTTP/1.1 422 Unprocessable Entity
{
"status": "fail",
"type": "REFERENCE_UNAVAILABLE",
"message": "Reference currency not available"
}