FTT Query

Returns 1000 DEX trades on Ethereum, where base currency is 0x50d1…a4c9, quote currency is 0xc02a…6cc2 and date since 2022-01-01, sorted by time interval minute, highest first: minute, base currency symbol, quote currency symbol, trade amount, quote price and count.

By Anirudh Sachdeva · saved 24 March 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x50d1c9771902476076ecfc8b2a83ad6b9355a4c9"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      options: {limit: 1000, desc: "timeInterval.minute"}
      date: {since: "2022-01-01", till: "2022-12-31"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      tradeAmount(in: USD)
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      trades: count
    }
  }
}

Similar queries