OHLC data - Removing anamoly

Returns 25000 DEX trades on Ethereum, where base currency is 0xc02a…6cc2, quote currency is 0xA0b8…eB48 and protocol is Uniswap v3: day, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, count and 5 more fields.

By gaurav · saved 16 May 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 25000}
      protocol: {is: "Uniswap v3"}
      baseCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      quoteCurrency: {is: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}
      date: {is: "2023-03-13"}
      exchangeName: {is: "Uniswap"}
      priceAsymmetry: {lt: 0.1}
      tradeAmountUsd: {gt: 20}
    ) {
      timeInterval {
        day(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      tradeAmount(in: USD)
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      baseAmount
      quoteAmount
    }
  }
}

Similar queries