Query for DEX Exchanges

Returns DEX trades on Ethereum, where base currency is 0xdac1…1ec7, sorted by amount, highest first: full name, count, base amount and base currency symbol.

By Mann · saved 21 October 2021 · run 13 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "amount"}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      exchange {
        fullName
      }
      trades: count
      takers: count(uniq: takers)
      makers: count(uniq: makers)
      amount: baseAmount
      baseCurrency {
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries