Skip to main content
GET
Top Gainers & Losers

SDK Examples

Authorizations

x-cg-pro-api-key
string
header
required

Learn how to set up your API key

Query Parameters

vs_currency
string
default:usd
required

Target currency of coins. *refers to /simple/supported_vs_currencies

duration
enum<string>

Filter result by time range. Default: 24h

Available options:
1h,
24h,
7d,
14d,
30d,
60d,
1y
price_change_percentage
string

Include price change percentage timeframe, comma-separated if querying more than 1 timeframe. Valid values: 1h, 24h, 7d, 14d, 30d, 60d, 200d, 1y

top_coins
enum<string>

Filter result by market cap ranking (top 300 to 1000) or all coins (including coins that do not have market cap). Default: 1000

Available options:
300,
500,
1000,
all

Response

200 - application/json

Top gainers and losers

top_gainers
object[]
required
top_losers
object[]
required