With the coin market-caps endpoint you can check out a coin's historical market cap. The market cap for each coin is determined by the latest price for one coin, multiplied by the amount of coins in circulation.
https://api.coinranking.com/v2/coin/:uuid/market-cap-history
Parameter | Description |
---|---|
uuid String | UUID of the coin you want to request the market cap data for. A UUID is our unique identifier for each coin. You can find them in all our coin endpoints, or look them up in the find UUID page. |
Parameter | Description |
---|---|
interval (optional) String |
The interval determines the time period over which each market cap item is determined. Default value: dayAllowed values: hour day week month Example:
...coin/Qwsogvtv82FCd/market-cap-history?interval=hour
|
limit (optional) Number |
Limit. Limit the amount of time periods for which the marketCaps are retrieved. For example, when interval=hour and limit is 10, data will be returned for the last 10 hours. The maximum amount of results you can fetch in one request is 5000 for the Startup and Professional plan, and 100 for the Free plan. Default value: 50Size range: 0-5000 Example:
...coin/Qwsogvtv82FCd/market-cap-history?limit=10
|
jsonHTTP/1.1 200 OK
{
"status": "success",
"data": {
"history": [
{
"timestamp": 1698220800,
"marketCap": "663355719491"
},
{
"timestamp": 1698217200,
"marketCap": "662740429329"
},
{
"timestamp": 1698213600,
"marketCap": "666715637188"
},
]
}
}
Property | Description |
---|---|
status String | Status of the request Allowed values:success |
data Object | |
data.history Object[] | List of market cap items |
data.history.timestamp Number | An Epoch timestamp in seconds |
data.history.marketCap String/null | the market cap in US Dollars |
jsonHTTP/1.1 404 Not Found
{
"status": "fail",
"type": "COIN_NOT_FOUND",
"message": "Coin not found"
}