avalanche

Returns 100000 DEX trades on Ethereum and Avalanche, where base currency is 0x1fe4…293d, quote currency is 0x6e84…0fdd and exchange name is Trader Joe, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By developerjory · saved 1 April 2024 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: avalanche) {
    dexTrades(
      options: {limit: 100000, asc: "timeInterval.minute"}
      date: {since: "2022-01-23"}
      exchangeName: {is: "Trader Joe"}
      baseCurrency: {is: "0x1fe4869f2c5181b9cd780a7e16194fa2c4c4293d"}
      quoteCurrency: {is: "0x6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      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)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "avalanche",
  "from": "2024-04-01T11:42:14.000Z",
  "till": "2024-04-01T12:12:14.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries