uniswap v3

Returns 3000 DEX trades on Ethereum, where base currency is 0x2260…c599, quote currency is 0xa0b8…eb48 and exchange name is Uniswap, sorted by time interval day, highest first: day, base currency symbol, base currency address, trade amount, base amount, quote currency symbol, quote currency address and 5 more fields.

By gaurav · saved 29 March 2022 · run 20 times · Bitquery API v1

What it returns

Filters

The query

query ($dex: String, $token0: String, $token1: String, $sinceDate: ISO8601DateTime, $limit: Int) {
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: $limit, desc: "timeInterval.day"}
      date: {before: $sinceDate}
      exchangeName: {is: $dex}
      baseCurrency: {is: $token0}
      quoteCurrency: {is: $token1}
      protocol: {is: "Uniswap v3"}
    ) {
      timeInterval {
        day
      }
      baseCurrency {
        symbol
        address
      }
      tradeAmount(in: USD)
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      highPrice: quotePrice(calculate: maximum)
      lowPrice: quotePrice(calculate: minimum)
      openPrice: minimum(of: block, get: quote_price)
      closePrice: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "dex": "Uniswap",
  "limit": 3000,
  "sinceDate": "2022-03-31T21:00:00.000Z",
  "token0": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
  "token1": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}

Similar queries