# Liquidity on DEX

**URL:** <https://community.bitquery.io/t/liquidity-on-dex/27>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [May 15, 2021, 11:09am UTC](https://community.bitquery.io/t/liquidity-on-dex/27 "2021-05-15T11:09:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajat](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@Rajat](https://community.bitquery.io/u/Rajat)\
**Post date:** [May 15, 2021, 11:09am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/1 "2021-05-15T11:09:10Z")

</div>

Hi,

Need a sample query to fetch Liquidity of wlt token on ‘Pancake’ exchange.

What is liquidity?? - Its a collection of funds locked in a smart contract.  
Defi is different from the traditional order-book (trading) (buyer- bids and seller- bids), here the seller can sell the tokens against the liquidity locked by the token owners  
let’s say a token( wlt) - the owners have pooled 9004 token in a pool against BNB, (so pooled WLT is 9004 and pooled BNB - 508) (this is a pair now)

please share a sample query to fetch these two values - pooled wlt and pooled BnB

Edit: Just observed that this liquidity is the pair of Pancake-WLT (0xcdff007f71e6986397bdb099160d37c3f194b642) - amount(its in wlt)

> **[Wealth (WLT) Token Tracker | BscScan](https://bscscan.com/token/0xb7b262b0ac4939d8936685e20189d809bdb5dac6?a=0xcdff007f71e6986397bdb099160d37c3f194b642)**
>
> Wealth (WLT) Token Tracker on BscScan shows the price of the Token $0.00, total supply 100,000, number of holders 789 and updated information of the token. The token tracker page also shows the analytics and historical data.

---

<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:46am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/2 "2021-05-16T01:46:16Z")

</div>

I think balance APIs can you give you liquidity, check this topic

[https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/5](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/5)

---

<div class="post-metadata">

**Author:** ![queen](https://avatars.discourse-cdn.com/v4/letter/q/a4c791/32.png) [@queen](https://community.bitquery.io/u/queen)\
**Post date:** [June 20, 2021, 8:05am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/3 "2021-06-20T08:05:53Z")

</div>

Hello, How to fetch 24h liquidity? i.e., the total balance of total BOG and total BNB  
{  
ethereum(network: bsc) {  
address(address: {is: “0xB09FE1613fE03E7361319d2a43eDc17422f36B09”}) {  
balances {  
currency {  
symbol  
}  
value  
}  
}  
}  
}

---

<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:** [June 20, 2021, 9:33am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/4 "2021-06-20T09:33:19Z")

</div>

For that, you need to check balance history, however you need to process this data

```auto
{
  ethereum(network: bsc) {
    address(address: {is: "0xB09FE1613fE03E7361319d2a43eDc17422f36B09"}) {
      balances (time: {till: "2021-06-19T00:00:00+00:00"}) {
        currency {
          symbol
        }
        value
        history{
          value
          block
          timestamp
        }
      }
    }
  }
}

```

---

<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, 8:20am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/5 "2021-07-09T08:20:32Z")

</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 14, 2021, 8:21am UTC](https://community.bitquery.io/t/liquidity-on-dex/27/6 "2021-07-14T08:21:14Z")

</div>


