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 Token Pair Stats

GEThttps://solana-gateway.moralis.io/token/:network/pairs/:pairAddress/stats

Get the pair stats by using pair address

Note

The data is updated every 30 seconds to ensure you have access to near real-time information about price changes, liquidity, volume, and trading activity.

PATH PARAMS
networkstringrequired
The network to query
pairAddressstringrequired
The pair address
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/pairs/83v8iPyZihDEjDdY8RdZddyZNyUtXngz69Lgo9Kt5d6d/stats', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"tokenAddress": "So11111111111111111111111111111111111111112",
"tokenName": "Wrapped SOL",
"tokenSymbol": "SOL",
"tokenLogo": "",
"pairCreated": "",
"pairLabel": "SOL/USDC",
"pairAddress": "83v8iPyZihDEjDdY8RdZddyZNyUtXngz69Lgo9Kt5d6d",
"exchange": "Orca Whirlpool",
"exchangeAddress": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
"exchangeLogo": "https://entities-logos.s3.amazonaws.com/orca.png",
"exchangeUrl": "",
"currentUsdPrice": "253.828998134",
"currentNativePrice": "1.000000000",
"totalLiquidityUsd": "418891.89570704",
"pricePercentChange": {
"5min": -0.008714344862928774,
"1h": -0.717635588435784,
"4h": 0.6634414953055396,
"24h": 0.6554089425811667
},
"liquidityPercentChange": {
"5min": 0.002550807647409825,
"1h": 0.7293455553137336,
"4h": 1.0947695816991907,
"24h": -3.494241942992604
},
"buys": {
"5min": 25,
"1h": 1320,
"4h": 5268,
"24h": 35760
},
"sells": {
"5min": 23,
"1h": 1122,
"4h": 4219,
"24h": 30895
},
"totalVolume": {
"5min": 23544.275417954,
"1h": 816271.9723616,
"4h": 2892716.8329447,
"24h": 23915669.075196
},
"buyVolume": {
"5min": 10962.891523975,
"1h": 391476.55636069,
"4h": 1455752.2761177,
"24h": 11968623.126369
},
"sellVolume": {
"5min": 12581.383893979,
"1h": 424795.41600092,
"4h": 1436964.5568269,
"24h": 11947045.948827
},
"buyers": {
"5min": 23,
"1h": 645,
"4h": 2063,
"24h": 9980
},
"sellers": {
"5min": 15,
"1h": 422,
"4h": 1179,
"24h": 5634
}
}