What are the latest 5 pair of WETH tokens?

Returns 5 DEX trades on Ethereum, where buy currency is 0xc02a…6cc2, date since 2023-04-13 and date till 2023-04-20, sorted by trade amount, highest first: buy currency symbol, buy currency address, sell currency symbol, sell currency address, count, trade amount and minimum of date.

By Oluwatomisin · saved 20 April 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      buyCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      options: {desc: "tradeAmount", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      count
      tradeAmount(in: USD)
      dates: count(uniq: dates)
      started: minimum(of: date)
    }
  }
}

Variables

{
  "limit": 5,
  "offset": 0,
  "network": "ethereum",
  "from": "2023-04-13",
  "till": "2023-04-20T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries