candles

Returns 100 DEX trades on Ethereum, where base currency is 0x6982…1933, quote currency is 0xa0b8…eb48 and exchange name is Uniswap, sorted by time interval minute, highest first: minute, count, trade amount, quote amount and quote price.

By ak · saved 19 July 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 100, desc: "timeInterval.minute"},
      baseCurrency: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"},
      quoteCurrency: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}, # USDC address
      exchangeName: {is: "Uniswap"},
      time: {since: "2023-07-01T00:00:00Z", till: "2023-07-01T23:59:59Z"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      trades: count
      tradeAmount(in: USD)
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      close: quotePrice(calculate: average)
      open: quotePrice(calculate: average)
    }
  }
}

Similar queries