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 Volume Stats By Categories Mainnet Only

GEThttps://deep-index.moralis.io/api/v2.2/volume/categories

Returns volume statistics, buyer/seller counts, and transaction counts for token categories on a specific chain

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/volume/categories?chain=solana', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"categories": [
{
"categoryId": "artificial-intelligence",
"totalBuyVolume": {
"5m": 714.0815536553663,
"1h": 8330.827220195075,
"6h": 226941.46075181215,
"24h": 844976.6205963915
},
"totalSellVolume": {
"5m": 974.2512412423143,
"1h": 27373.23458490025,
"6h": 212581.83058358674,
"24h": 1099797.4109894654
},
"totalBuyers": {
"5m": 4,
"1h": 22,
"6h": 240,
"24h": 1206
},
"totalSellers": {
"5m": 3,
"1h": 35,
"6h": 236,
"24h": 1020
},
"totalBuys": {
"5m": 4,
"1h": 23,
"6h": 253,
"24h": 1271
},
"totalSells": {
"5m": 3,
"1h": 35,
"6h": 249,
"24h": 1074
}
}
]
}