token pairs on uniswap

Returns 10 DEX trades on Ethereum, where exchange name is Uniswap, date since 2022-05-25 and date till 2022-06-01, 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 gaurav · saved 1 June 2022 · run 26 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: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      exchangeName: {is: $exchange}
    ) {
      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)
      smartContract{
        address{
          address
        }
      }
    }
  }
}

Variables

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

Similar queries