Top Traded Pairs on Uniswap v2 Last 30 days

Returns 10 DEX trades on Ethereum, where protocol is Uniswap v2, date since 2023-04-02 and date till 2023-05-02, sorted by count, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 4 more fields.

By Divyasshree N · saved 16 June 2023 · run 26 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!,$protocol:String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      tradeAmountUsd: {gt: 1000}
      protocol: {is: $protocol}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      count
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
      tradeAmount(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "from": "2023-04-02",
  "till": "2023-05-02T23:59:59",
  "dateFormat": "%Y-%m-%d",
  "protocol":"Uniswap v2"
}

Similar queries