Asset Rankings Historical
curl --request GET \
--url https://api.amberdata.com/market/rankings/historical \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/market/rankings/historical"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/market/rankings/historical', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amberdata.com/market/rankings/historical",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/market/rankings/historical"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/market/rankings/historical")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/market/rankings/historical")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"description": "Successful request",
"payload": {
"data": [
{
"symbol": "btc",
"batchId": "2021-01-01T05:10:00.003Z",
"address": null,
"currentPrice": "28958",
"decimals": "8",
"marketCap": "540759200822",
"liquidMarketCap": "538236177946",
"name": "Bitcoin",
"rank": 1,
"circulatingSupply": 18586787,
"totalSupply": 21000000,
"maxSupply": 21000000,
"blockchain": {
"blockchainId": "408fa195a34b533de9ad9889f076045e",
"name": "Bitcoin",
"slug": "bitcoin",
"symbol": "btc",
"icon": "https://amberdata.io/digital-assets/bitcoin_btc.png"
}
}
],
"metadata": {
"totalRecords": "2143"
}
},
"status": 200,
"title": "OK"
}{}Asset Rankings Historical
Retrieves the top ranked assets, tokens and native coins, by a specific metric.
GET
/
rankings
/
historical
Asset Rankings Historical
curl --request GET \
--url https://api.amberdata.com/market/rankings/historical \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/market/rankings/historical"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/market/rankings/historical', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amberdata.com/market/rankings/historical",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amberdata.com/market/rankings/historical"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amberdata.com/market/rankings/historical")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/market/rankings/historical")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"description": "Successful request",
"payload": {
"data": [
{
"symbol": "btc",
"batchId": "2021-01-01T05:10:00.003Z",
"address": null,
"currentPrice": "28958",
"decimals": "8",
"marketCap": "540759200822",
"liquidMarketCap": "538236177946",
"name": "Bitcoin",
"rank": 1,
"circulatingSupply": 18586787,
"totalSupply": 21000000,
"maxSupply": 21000000,
"blockchain": {
"blockchainId": "408fa195a34b533de9ad9889f076045e",
"name": "Bitcoin",
"slug": "bitcoin",
"symbol": "btc",
"icon": "https://amberdata.io/digital-assets/bitcoin_btc.png"
}
}
],
"metadata": {
"totalRecords": "2143"
}
},
"status": 200,
"title": "OK"
}{}Authorizations
Query Parameters
The date for which to retrieve the rankings.
The page number to return.
The number of records per page. (max 1000)
[Optional] Exclude Low marketcap assets from returning. Occasionally, low marketcap assets return in the rankings due to price volatility on DEXes. Change to TRUE to include a curated list of assets.
Response
200
Was this page helpful?
⌘I