# How to get Market cap

**URL:** <https://community.bitquery.io/t/how-to-get-market-cap/62>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [May 25, 2021, 12:42am UTC](https://community.bitquery.io/t/how-to-get-market-cap/62 "2021-05-25T00:42:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![webpro2021](https://avatars.discourse-cdn.com/v4/letter/w/ba8739/32.png) [@webpro2021](https://community.bitquery.io/u/webpro2021)\
**Post date:** [May 25, 2021, 12:42am UTC](https://community.bitquery.io/t/how-to-get-market-cap/62/1 "2021-05-25T00:42:15Z")

</div>

Hello, I am trying to get token’s market cap and 24h volume in my project.  
To calculate market cap, I should get circulating supply of the token.  
And also how can I get 24h volume?  
Thanks.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 25, 2021, 5:06am UTC](https://community.bitquery.io/t/how-to-get-market-cap/62/2 "2021-05-25T05:06:21Z")

</div>

For marketcap you need supply and token price.

We don’t have supply, but you can get the token price using our APIs. Check [this thread](https://community.bitquery.io/t/token-price-in-usd-for-binance-smart-chain).

Trading Volume uses the following queries.

[Pancake Trade Volume for different currency pairs](https://graphql.bitquery.io/ide/4JBqepcH3T)  
[Pancake Pool's volume for a date](https://graphql.bitquery.io/ide/KrQD02Pl8i) (change smart contract address based on your need, if you need a token’s trading volume, then replace contract with token’s smart contract)

---

<div class="post-metadata">

**Author:** ![webpro2021](https://avatars.discourse-cdn.com/v4/letter/w/ba8739/32.png) [@webpro2021](https://community.bitquery.io/u/webpro2021)\
**Post date:** [May 25, 2021, 5:14am UTC](https://community.bitquery.io/t/how-to-get-market-cap/62/3 "2021-05-25T05:14:26Z")

</div>

Thanks for your reply. I have already know how to get token price.  
And I have an another question. I made the following query to get token price.  
{  
ethereum(network: bsc) {  
dexTrades(  
any: [{exchangeName: {is: “Pancake”}, baseCurrency: {is: “0xb63A911AE7Dc40510E7Bb552b7Fcb94c198bBE2D”}, quoteCurrency: {is: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”}}, {baseCurrency: {is: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”}, quoteCurrency: {is: “0xe9e7cea3dedca5984780bafc599bd69add087d56”}}]  
options: {desc: [“block.height”], limitBy: {each: “baseCurrency.symbol”, limit: 1}}  
) {  
baseCurrency {  
symbol  
}  
block {  
height  
}  
quoteCurrency {  
symbol  
}  
quote: quotePrice  
}  
}  
}  
But it takes 10-11 seconds to fetch the result from [bitquery.io](http://bitquery.io).  
I wonder what my mistakes are or what to do.  
Thank you.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 25, 2021, 8:00am UTC](https://community.bitquery.io/t/how-to-get-market-cap/62/4 "2021-05-25T08:00:23Z")

</div>

Add date filter and use latest date…for example

```
date: {since: "2021-05-24"}

```

Use the latest date
