Top Gainers & Losers
curl --request GET \
--url https://api.cryptorank.io/v3/currencies/gainers-losers \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.cryptorank.io/v3/currencies/gainers-losers"
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.cryptorank.io/v3/currencies/gainers-losers', 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.cryptorank.io/v3/currencies/gainers-losers",
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.cryptorank.io/v3/currencies/gainers-losers"
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.cryptorank.io/v3/currencies/gainers-losers")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptorank.io/v3/currencies/gainers-losers")
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{
"data": [
{
"id": 1,
"rank": 1,
"slug": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"imageUrl": "https://images.cryptorank.io/coins/150x150.bitcoin1524754012028.png",
"category": {
"id": 54,
"slug": "defi",
"name": "DeFi"
},
"price": "65000.5",
"marketCap": "1280000000000",
"pricePercentChange": 5.42,
"volume24h": "32000000000"
}
],
"status": {
"usedCredits": 1,
"timestamp": 1780000000000
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"status": 400
}
}{
"error": {
"code": "API_KEY_MISSING",
"message": "API key is missing",
"status": 401
}
}{
"error": {
"code": "NO_ACTIVE_SUBSCRIPTION",
"message": "No active subscription found",
"status": 403
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"status": 429
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error",
"status": 500
}
}Currencies
Top Gainers & Losers
Returns the top coins by price movement over the selected period.
Available from: Basic
Cost: 1 credit per request
GET
/
v3
/
currencies
/
gainers-losers
Top Gainers & Losers
curl --request GET \
--url https://api.cryptorank.io/v3/currencies/gainers-losers \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.cryptorank.io/v3/currencies/gainers-losers"
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.cryptorank.io/v3/currencies/gainers-losers', 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.cryptorank.io/v3/currencies/gainers-losers",
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.cryptorank.io/v3/currencies/gainers-losers"
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.cryptorank.io/v3/currencies/gainers-losers")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptorank.io/v3/currencies/gainers-losers")
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{
"data": [
{
"id": 1,
"rank": 1,
"slug": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"imageUrl": "https://images.cryptorank.io/coins/150x150.bitcoin1524754012028.png",
"category": {
"id": 54,
"slug": "defi",
"name": "DeFi"
},
"price": "65000.5",
"marketCap": "1280000000000",
"pricePercentChange": 5.42,
"volume24h": "32000000000"
}
],
"status": {
"usedCredits": 1,
"timestamp": 1780000000000
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed",
"status": 400
}
}{
"error": {
"code": "API_KEY_MISSING",
"message": "API key is missing",
"status": 401
}
}{
"error": {
"code": "NO_ACTIVE_SUBSCRIPTION",
"message": "No active subscription found",
"status": 403
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"status": 429
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error",
"status": 500
}
}Default filters apply: minMarketCap=500000, minVolume24h=1000000.
Toggle between Gainers and Losers via group (default gainers).
Authorizations
Query Parameters
Period over which coins are ranked by price movement.
Available options:
24h, 7d, 30d gainers returns the biggest risers, losers the biggest fallers.
Available options:
gainers, losers Filter by category id.
Minimum market cap filter, USD. Pass 0 to disable.
Required range:
x >= 0Maximum market cap filter, USD.
Required range:
x >= 0Minimum 24h volume filter, USD. Pass 0 to disable.
Required range:
x >= 0Maximum 24h volume filter, USD.
Required range:
x >= 0⌘I