GET
https://api.cryptohopper.com/v1/exchange/marketcap
Returns up to 20 currencies ordered by market cap rank, each with its fear and greed label. Also returns the total market cap, the total 24h volume and the average fear and greed score of all tracked currencies.
OAuth scope:
read About scopes
The offset is (page - 1) * total, but every response holds up to 20 currencies. Send total=20 to page through the list.
Example request
curl "https://api.cryptohopper.com/v1/exchange/marketcap" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/exchange/marketcap', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/exchange/marketcap",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/exchange/marketcap');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
page |
string | Optional | Page number, default 1. |
total |
string | Optional | Page size used to calculate the offset, default 1. |
Response
{
"data": {
"currencies": [
{
"id": "1",
"name": "Bitcoin",
"symbol": "BTC",
"slug": "bitcoin",
"img": "https://cdn.cryptohopper.com/images/exchange/currencies/BTC.png",
"rank": "1",
"price_usd": "63120.4500000000",
"price_btc": "1.00000000",
"volume_usd_24h": "32000000000.00",
"market_cap_usd": "1250000000000.00",
"high_24h": "64250.1200000000",
"low_24h": "62010.5500000000",
"available_supply": "19750000.00",
"total_supply": "21000000.00",
"ath": "73750.0000000000",
"ath_date": "1710460800",
"price_change_24h": "1150.2000000000",
"percent_change_24h": "1.85",
"weekly": null,
"weekly_expire": "1758787200",
"about_text": null,
"meta_keywords": null,
"meta_description": null,
"faq": null,
"indicator_result_text": "Greed"
}
],
"total_market_cap": 2450000000000.5,
"total_volume": 98000000000.25,
"fear_and_greed": 58
}
}