# How to get liquidity providers for a pool/protocol

**URL:** <https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649>\
**Category:** GraphQL API\
**Created:** [November 19, 2021, 11:21am UTC](https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649 "2021-11-19T11:21:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfl694](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jfl694](https://community.bitquery.io/u/jfl694)\
**Post date:** [November 19, 2021, 11:21am UTC](https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649/1 "2021-11-19T11:21:01Z")

</div>

Given this sample query:

```auto
{
  ethereum {
    dexTrades(makerOrTaker: {is: "0x9428e55418755b2f902d3b1f898a871ab5634182"} ) {
      protocol
      buyAmountInUsd: buyAmount(in: USD)
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
    }
  }
}

```

The `taker` address is the trader - who buys/sells on the dex. And the ‘maker’ addresses refer to the LP pools right.

Is there a way to who has contributed to the LP pool itself? i.e. which addresses are liquidity providers for a given protocol? Or given an address, how to figure out if it has contributed liquidity to any dex?

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://community.bitquery.io/u/aman)\
**Post date:** [November 22, 2021, 6:52am UTC](https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649/2 "2021-11-22T06:52:50Z")

</div>

No that is not present, you will have to use the data that we provide and come to the conclusion yourself

---

<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:00am UTC](https://community.bitquery.io/t/how-to-get-liquidity-providers-for-a-pool-protocol/649/3 "2021-11-22T10:00:27Z")

</div>

You can get it through the Mint event

For example check following example which get USDT-WETH pairs mint event data

```auto
{
  ethereum(network: ethereum) {
    arguments(
      options: {desc: ["block.height","index"], limit: 10}
      smartContractAddress: {in: "0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852", }
      smartContractEvent: {is: "Mint"}
    ) {
      block {
        height
      }
      index
      sender: any(of: argument_value, argument: {is: "sender"})
      amount0: any(of: argument_value, argument: {is: "token0"})
      amount1: any(of: argument_value, argument: {is: "amount1"})
    }
  }
}

```
