Trade Analytics

Weekly Trade Analytics on Uniswap V3

Returns 100 DEX trades on Ethereum, where protocol is Uniswap v3, date since 2023-12-16 and date till 2023-12-23, sorted by count, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 3 more fields.

By Deepak · saved 23 December 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $protocol: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      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)
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 10,
  "network": "ethereum",
  "protocol": "Uniswap v3",
  "from": "2023-12-16",
  "till": "2023-12-23T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries