An attempt at market cap / total supply on BSC

Hello all! I understand market cap calculation has been discussed. Most responses point to this solution but it doesn’t always give supply. For example, my query for SAFEMOON (0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3) returns a “name”: “totalSupply” value, but the same query with some coins like (0x903fcaf1a49b29678c15b43bc9f852232bfa7df1) doesn’t return this value.

Question 1) Why don’t some coins return any total supply?

Question 2)

The results I do get seem wrong. The Total Supply on poocoin for SAFEMOON lists the supply at 1,000,000,000,000,000 (five commas). However, the query above lists it as 1,000,000,000,000,000,000,000,000 (eight commas). This of course throws off the calculations. Any idea?

Question 3) Perhaps related… I understand that Market Cap = current price * supply. However, even when I look at a sample on poocoin (sorry… I know they are a client, but it helps me!) I can’t get that calculation to work out (like $0.00000187568 * 1,000,000,000,000,000 does not equal the displayed market cap of $1,086,327,930). Other coin calculations are even farther off (VERY OFF). Is this because we are supposed to use Circulating Supply? And if so, how do I get that from bitquery?

Thanks for reading and for all your help. I’m really learning so much here!

Check this thread

We will implement it shortly. We’ll draw data directly from the Binance node.

Thanks so much. This is a big help.

Thanks for asking the team about the math. Can’t get Market Cap to work with total supply or circulating supply: