Live Data Version 1 Query

Returns DEX trades on Ethereum, where base currency is 0x1f98…f984 and time since 2024-04-17, sorted by time interval minute: minute, quote currency address, quote currency symbol, trade amount, count and maximum of block.

By Aman · saved 7 February 2025 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
      dexTrades(
          options: {asc: "timeInterval.minute"}
          baseCurrency: {is:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}
          time: {since: "2024-04-17"}
      ) 
      {
           timeInterval {
                minute(count: 5 format: "%Y-%m-%dT%H:%M:%SZ")
            }
          quoteCurrency(quoteCurrency: {in: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}) {
              address
              symbol
          }
          tradeAmount(in: USD)
          trades: count
          date_n_time: maximum(of:block , get: time)
          price: maximum(of:block , get: quote_price)
      }
  }
}

Similar queries