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://solana-gateway.moralis.io/token/:network/:address/pairs/stats

Get aggregated statistics across supported pairs of a token.

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address of the contract
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://solana-gateway.moralis.io/token/mainnet/SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt/pairs/stats', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"totalLiquidityUsd": 1184543489313.2297,
"totalActivePairs": 217,
"totalActiveDexes": 163
}