# Get pool Ethereum network

**URL:** <https://community.bitquery.io/t/get-pool-ethereum-network/1327>\
**Category:** GraphQL API\
**Created:** [January 6, 2023, 10:14am UTC](https://community.bitquery.io/t/get-pool-ethereum-network/1327 "2023-01-06T10:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [January 6, 2023, 10:14am UTC](https://community.bitquery.io/t/get-pool-ethereum-network/1327/1 "2023-01-06T10:14:52Z")

</div>

Hello, is there a query to get all the pools with related data existing on Ethereum?

---

<div class="post-metadata">

**Author:** ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)\
**Post date:** [January 8, 2023, 3:40pm UTC](https://community.bitquery.io/t/get-pool-ethereum-network/1327/2 "2023-01-08T15:40:55Z")

</div>

This one is to get top Uniswap pools, you can do it for other exchanges using this as reference.

```auto
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $exchange: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "tradeAmount", limit: $limit, offset: $offset, limitBy: {each: "smartContract.address.address", limit: 1}}
      date: {since: $from, till: $till}
      exchangeName: {is: $exchange}
    ) {
      smartContract {
        address {
          address
        }
      }
      sellCurrency {
        symbol
        address
      }
      sellAmount
      buyCurrency {
        symbol
        address
      }
      buyAmount
      count
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
      tradeAmount(calculate: sum, in: USD)
    }
  }
}

```

**Parameters**

```auto
{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "exchange": "Uniswap",
  "from": "2022-11-30",
  "till": "2022-12-30",
  "dateFormat": "%Y-%m-%d"
}

```
