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 Timeseries Token Analytics Mainnet Only Premium Endpoint

💡Premium Endpoint

To use this API, you will need an API key associated with a Moralis account on the Business plan or higher.

POSThttps://deep-index.moralis.io/api/v2.2/tokens/analytics/timeseries

Retrieve timeseries volume data by token addresses

QUERY PARAMS
timeframestringrequired
The timeframe to query
BODY PARAM
tokensarrayrequired
The tokens to be fetched
tokens[0]
chainstringrequired
The chain identifier (chain name or hex chain ID)
tokenAddressstringrequired
The token contract address
tokens[1]
chainstringrequired
The chain identifier (chain name or hex chain ID)
tokenAddressstringrequired
The token contract 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: 'POST',
headers: {
accept: 'application/json',
'content-type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
"tokens": [
{
"chain": "0x1",
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
{
"chain": "solana",
"tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
]
})
};

fetch('https://deep-index.moralis.io/api/v2.2/tokens/analytics/timeseries?timeframe=1d', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"result": [
{
"chainId": "0x1",
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"timeseries": [
{
"timestamp": "2022-02-22T00:00:00Z",
"buyVolume": 4565,
"sellVolume": 4565,
"liquidityUsd": 4565,
"fullyDilutedValuation": 4565
}
]
}
]
}