fixed query for dexes

Returns DEX trades on Ethereum, where buy currency is not 0x9e9f…0413, sell currency is not 0x9e9f…0413 and date since 2024-02-05, sorted by trade amount, highest first: full name, count and trade amount.

By Aleksey · saved 12 February 2024 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(options: {desc: "tradeAmount"}, 
      buyCurrency: {not: "0x9e9fbde7c7a83c43913bddc8779158f1368f0413"}
      sellCurrency: {not: "0x9e9fbde7c7a83c43913bddc8779158f1368f0413"}
      date: {since: $from, till: $till}) {
      exchange {
        fullName
      }
      trades: count
      tradeAmount(in: USD)
      currencies: count(uniq: buy_currency)
      contracts: count(uniq: smart_contracts)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "from": "2024-02-05",
  "till": "2024-02-12T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries