Get DEX exchange coin listings

Growth This endpoint requires the growth plan or higher. Free, Basic and Startup plans can use preview access.

Find coins listed on a specific DEX exchange. On Coinranking, we use this endpoint on our DEX exchange coin listings page.

https://api.coinranking.com/v2/dex/:uuid/coins

Preview access

Free, Basic and Startup plans can test this endpoint with five successful requests per account per UTC day. Use the documented endpoint URL with your existing API key. Preview access is applied automatically. The allowance resets at 00:00 UTC.

All API keys, resource IDs, query parameters and pagination requests share this endpoint's allowance for your account. Failed requests do not consume the preview allowance. Successful previews also count toward your normal API usage, and your plan's result, historical-window and rate limits still apply. See endpoint previews for limits, response headers and quota errors.

Path parameters

Parameter Description
uuid String

UUID of the DEX exchange you want to request

Query parameters

Parameter Description
referenceCurrencyUuid (optional) String

UUID of coin (either fiat or crypto), the price of the reference currency is used to calculate the volume. Defaults to US Dollar, but you can use any coin. You can find UUIDs for reference currencies in any coin endpoint, including a convenient dedicated reference currency endpoint

Default value: yhjMzLPhuIDl

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?referenceCurrencyUuid=5k-_VTxqtCEI
limit (optional) Number

Limit. Used for pagination. The maximum amount of results you can fetch in one request is 100 for Free and 5000 for all paid plans, including previews where available.

Default value: 50
Size range: 0-5000

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?limit=10
offset (optional) Number

Offset. Used for pagination

Default value: 0

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?offset=50
orderBy (optional) String

Index to sort on. Default is 24h volume

Default value: 24hVolume
Allowed values:
24hVolume price numberOfMarkets

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?orderBy=numberOfMarkets
orderDirection (optional) String

order in ascending or descending order

Default value: desc
Allowed values:
asc desc

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?orderDirection=asc
cursor (optional) String

Cursor for pagination. Use the nextCursor value from the previous response to get the next page of results, or the previousCursor value to navigate back to the previous page. See Pagination for more information.

Example:
https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?cursor=eyJ0IjoxLC...

Code examples

curl
curl 'https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets' \
  -H 'x-access-token: your-api-key' \
  -G
JavaScript
const options = {
  headers: {
    'x-access-token': 'your-api-key',
  },
};

fetch('https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets', options)
  .then((response) => response.json())
  .then((result) => console.log(result));
PHP
<?php
  $curl = curl_init();

  curl_setopt_array($curl, array(
    CURLOPT_URL => "https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => array(
      "x-access-token: your-api-key"
    ),
  ));

  $response = curl_exec($curl);

  curl_close($curl);
  echo $response;
Python
import requests

headers = {
  'x-access-token': 'your-api-key'
}

response = requests.request("GET", "https://api.coinranking.com/v2/dex/5Sfs67ZcuOWm/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets", headers=headers)

print(response.text)

Response

json
HTTP/1.1 200 OK
{
  "status": "success",
  "data": {
    "stats": {
      "total": 2430
    },
    "coins": [
      {
        "rank": 1,
        "uuid": "Mtfb0obXVh59u",
        "symbol": "WETH",
        "name": "Wrapped Ether",
        "iconUrl": "https://cdn.coinranking.com/0Ema8rdoQ/weth.png",
        "numberOfMarkets": 387,
        "coinrankingUrl": "https://coinranking.com/coin/Mtfb0obXVh59u+wrappedether-weth",
        "price": "3440.2257784066314",
        "btcPrice": "0.033283653246679534",
        "24hVolume": "16478129205.36578"
      },
      {
        "rank": 2,
        "uuid": "i5jggxiwp",
        "symbol": "BSC-USD",
        "name": "Binance-Peg BSC-USD",
        "iconUrl": "https://cdn.coinranking.com/SeA5fxqOR/busdt_32.png",
        "numberOfMarkets": 206,
        "coinrankingUrl": "https://coinranking.com/coin/i5jggxiwp+binance-pegbsc-usd-bsc-usd",
        "price": "0.9999639744442227",
        "btcPrice": "0.000009675302480305863",
        "24hVolume": "15942824524.041134"
      }
    ]
  },
  "pagination": {
    "limit": 50,
    "hasNextPage": true,
    "hasPreviousPage": false,
    "nextCursor": "eyJiIjpbXSwidiI6MiwiciI6MiwidCI6Imk1amdneGl3cCIsIm8iOiJ2b2x1bWUiLCJkIjoiZGVzYyIsImMiOiJuZXh0IiwicCI6Mn0",
    "previousCursor": null
  }
}

Response fields

Property Description
status String

Status of the request

Allowed values:
success
data Object
data.stats Object
data.stats.total Number

Total number of coins

data.coins Object[]
data.coins.rank String

The rank for this coin in this DEX exchange

data.coins.uuid String

UUID of the coin

data.coins.symbol String

Currency symbol

data.coins.name String

Name of the coin

data.coins.iconUrl String

Location of the icon. Replace .svg with .png or .webp, optionally with ?size=WIDTHxHEIGHT (e.g. ?size=28x28) to control dimensions. See Icons for more details.

data.coins.price String

Price of the coin

data.coins.btcPrice String

Price of the coin expressed in Bitcoin.

data.coins.24hVolume String

24h trade volume

data.coins.numberOfMarkets Number

The amount of markets this coin is exchanged in on this DEX exchange

data.coins.coinrankingUrl String

Where to find the coin on coinranking.com

pagination Object

Pagination information. See Pagination for more details.

pagination.limit Number

The number of results per page

pagination.hasNextPage Boolean

Whether there are more results available after the current page

pagination.hasPreviousPage Boolean

Whether there are results available before the current page

pagination.nextCursor String/null

Cursor to use for the next page, or null if there are no more results

pagination.previousCursor String/null

Cursor to use for the previous page, or null if on the first page

Error response

json
HTTP/1.1 422 Unprocessable Entity
{
  "status": "fail",
  "type": "REFERENCE_UNAVAILABLE",
  "message": "Reference currency not available"
}

Error responses

Error Description
EXCHANGE_NOT_FOUND Object

The DEX exchange could not be found. Try another UUID

Error Description
VALIDATION_ERROR Object

The request could not be validated. The response should provide more details.

REFERENCE_UNAVAILABLE Object

The reference currency used in the request is not available. Choose another UUID.

INVALID_CURSOR Object

The cursor string is malformed or could not be decoded. Start pagination from the beginning without a cursor.

CURSOR_MISMATCH Object

The cursor was created with different orderBy or orderDirection parameters. Match the original parameters or start over.

PAGINATION_CONFLICT Object

Both cursor and offset parameters were provided. Use only one pagination method per request.