top uniswap pools

Returns 10 DEX trades on Ethereum, where exchange name is Uniswap, date since 2022-05-30 and date till 2022-06-06, sorted by trade amount, highest first: address address, sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount and 5 more fields.

By gaurav · saved 6 June 2022 · run 19 times · Bitquery API v1

What it returns

Filters

The query

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)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "exchange": "Uniswap",
  "from": "2022-05-30",
  "till": "2022-06-06T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries