Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Aggregated Token Pair Stats

GEThttps://deep-index.moralis.io/api/v2.2/erc20/:token_address/pairs/stats

Get aggregated statistics across supported pairs of a token.

PATH PARAMS
token_addressstringrequired
The address of the token contract
QUERY PARAMS
chainstring
The chain to query
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://deep-index.moralis.io/api/v2.2/erc20/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/pairs/stats?chain=eth', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"total_liquidity_usd": 1184543489313.2297,
"total_active_pairs": 217,
"total_active_dexes": 163
}