API ReferenceToken APIGet Volume StatsGet Volume Stats By CategoryVersion: 2.2Get Volume Stats By Categories Mainnet OnlyGEThttps://deep-index.moralis.io/api/v2.2/volume/categoriesReturns volume statistics, buyer/seller counts, and transaction counts for token categories on a specific chainQUERY PARAMSchainstringThe chain to queryeth0x1polygon0x89bsc0x38avalanche0xa86afantom0xfaarbitrum0xa4b1gnosis0x64base0x2105optimism0xalinea0xe708moonbeam0x504ronin0x7e4pulse0x171solanaResponses200 Returns volume statistics for token categories on the specified chainobjectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport 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=eth', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://deep-index.moralis.io/api/v2.2/volume/categories?chain=eth"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/volume/categories?chain=eth' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/volume/categories?chain=eth" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/volume/categories?chain=eth', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns volume statistics for token categories on the specified chain{ "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 } } ]}