# Pancakeswap Liquidity, Price, ATH and ATL

**URL:** <https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [May 14, 2021, 11:56am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24 "2021-05-14T11:56:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jokakas](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jokakas](https://community.bitquery.io/u/jokakas)\
**Post date:** [May 14, 2021, 11:56am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/1 "2021-05-14T11:56:52Z")

</div>

Hello all

I got a list of around 1000 BSC tokens listed in Pancakeswap and want to get 2 things from them every hour:

1. The Price
2. The Liquidity
3. All Time High
4. All Time Low

Can anyone show me how to do it?

---

<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 15, 2021, 6:54am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/2 "2021-05-15T06:54:03Z")

</div>

The price you can get by getting the latest trade of that token,

Check this example query - [Trades for a specific token on the Pancake&nbsp;DEX](https://graphql.bitquery.io/ide/CYi1LCfkDh)

Liquidity - I still don’t understand what liquidity means here? Is is trading volume? Then this query ([Total Vol traded (USD) for token in PancakeSwap](https://graphql.bitquery.io/ide/GbuLw72CjN))

All-time high and low example WBNB/BUSD token

```
{
  ethereum(network: bsc) {
    dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![jokakas](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jokakas](https://community.bitquery.io/u/jokakas)\
**Post date:** [May 15, 2021, 11:59am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/3 "2021-05-15T11:59:08Z")

</div>

Thank you Gaurav very much for your reply.

The liquidity is the money in the pair.  
Here is an open API call with a list of Pancakeswap top 1000 pairs by liquidity:  
[https://api.pancakeswap.info/api/pairs](https://api.pancakeswap.info/api/pairs)

Now, how would you go about requesting that info for all 1000 tokens?  
Could it be done all at once, like adding them to a pool and making a request for all?

---

<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 16, 2021, 1:45am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/4 "2021-05-16T01:45:16Z")

</div>

I think this can be done through our balance APIs.

Check here the example of Balance API -

```
{
  ethereum (network:bsc){
    address(address: {is: "0x4d0228EBEB39f6d2f29bA528e2d15Fc9121Ead56"}) {
      balances {
        currency {
          symbol
        }
        value
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![huangwenxiansheng](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@huangwenxiansheng](https://community.bitquery.io/u/huangwenxiansheng)\
**Post date:** [July 7, 2021, 3:08am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/5 "2021-07-07T03:08:38Z")

</div>

Hello, I found that the API is very slow. The first request takes nearly 20 seconds to return

---

<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:** [July 7, 2021, 7:28am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/6 "2021-07-07T07:28:12Z")

</div>

Which one? … try to add time or date filter …or limit the result or processed data.

---

<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:** [July 9, 2021, 6:00am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/7 "2021-07-09T06:00:08Z")

</div>



---

<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:** [July 18, 2021, 9:29am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/8 "2021-07-18T09:29:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@max](https://community.bitquery.io/u/max)\
**Post date:** [November 21, 2021, 2:27pm UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/9 "2021-11-21T14:27:01Z")

</div>

could you share the query ?

---

<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:** [November 22, 2021, 10:16am UTC](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/10 "2021-11-22T10:16:36Z")

</div>

> [@gaurav](#):
>
> ```auto
> {
> ethereum (network:bsc){
> address(address: {is: "0x4d0228EBEB39f6d2f29bA528e2d15Fc9121Ead56"}) {
> balances {
> currency {
> symbol
> }
> value
> }
> }
> }
> }
> 
> ```

Example -

```auto
{
  ethereum (network:bsc){
    address(address: {is: "0x4d0228EBEB39f6d2f29bA528e2d15Fc9121Ead56"}) {
      balances (height: {gteq: 12849507}) {
        currency {
          symbol
        }
        value
      }
    }
  }
}

```
