# An attempt at market cap / total supply on BSC

**URL:** https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434
**Category:** GraphQL API
**Tags:** open
**Created:** [August 23, 2021, 2:01am UTC](https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434 "2021-08-23T02:01:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![haxtuf](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@haxtuf](https://community.bitquery.io/u/haxtuf)
#### Post date: [August 23, 2021, 2:01am UTC](https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434/1 "2021-08-23T02:01:55Z")

</div>

Hello all! I understand market cap calculation has been discussed. Most responses point to [_ **this solution** _](https://community.bitquery.io/t/queries-related-to-a-token/357#last-24-hour-volume-of-tokens-market-cap-6) but it doesn’t always give supply. For example, [_ **my query for SAFEMOON** _](https://graphql.bitquery.io/ide/8pIsQnkewO/8pIsQnkewO) (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** _](https://poocoin.app/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3) for SAFEMOON lists the supply at 1,000,000,000,000,000 (five commas). However, the [_ **query above** _](https://graphql.bitquery.io/ide/8pIsQnkewO/8pIsQnkewO) 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** _](https://poocoin.app/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3) (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!

---

<div class="post-metadata">

### Author: ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)
#### Post date: [August 23, 2021, 3:37am UTC](https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434/2 "2021-08-23T03:37:37Z")

</div>

> [@haxtuf](#):
>
> Is this because we are supposed to use _ **Circulating Supply** _ ? And if so, how do I get that from bitquery?

Check this thread

> [@Circulating Supply of a Pool Token](https://community.bitquery.io/t/circulating-supply-of-a-pool-token/210):
>
> { ethereum { transfers(date: {since: null, till: null}, amount: {gt: 0}) { minted: amount( calculate: sum sender: {is: "0x0000000000000000000000000000000000000000"} ) burned: amount( calculate: sum receiver: {is: "0x0000000000000000000000000000000000000000"} ) currency(currency: {is: "0x0ef1b8a0e726fc3948e15b23993015eb1627f210"}) { symbol name tokenId } } } }

---

<div class="post-metadata">

### Author: ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)
#### Post date: [August 23, 2021, 3:47am UTC](https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434/3 "2021-08-23T03:47:19Z")

</div>

> [@haxtuf](#):
>
> Question 1) Why don’t some coins return any total supply?

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

---

<div class="post-metadata">

### Author: ![haxtuf](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@haxtuf](https://community.bitquery.io/u/haxtuf)
#### Post date: [August 23, 2021, 2:24pm UTC](https://community.bitquery.io/t/an-attempt-at-market-cap-total-supply-on-bsc/434/4 "2021-08-23T14:24:25Z")

</div>

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:

> [@haxtuf](#):
>
> Question 3) Perhaps related… I understand that Market Cap = current price \* supply. However, even when I look at a [_ **sample on poocoin** _](https://poocoin.app/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3) (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** _ ?
