How to get token volume

please guys any idea on how to get token volume

There is no direct API to get the total supply, but if you have the contract function and ABI to get the token supply then you can run the contract function like below to get the same.

The below function gets the total supply of USDT.

const ABI = [
  {"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},
];

const options = {
    chain: "eth",
    address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    function_name: "totalSupply",
    abi: ABI,
    params: {},
  };
  const count = await Moralis.Web3API.native.runContractFunction(options); console.log(count)