Token trades

Returns 10 DEX trades on Ethereum and Avalanche, where date since 2023-12-01 and date till 2023-12-19, sorted by count, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 3 more fields.

By Aparna Sridhar · saved 19 December 2023 · run 13 times · Bitquery API v1

What it returns

Filters

The query

query  {
  ethereum(network: avalanche) {
    dexTrades(
      options: {desc: "count", limit: 10}
      date: {since: "2023-12-01", till: "2023-12-19"}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      count(baseCurrency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"})
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
    }
  }
}

Similar queries