sample

Returns 2 DEX trades on Ethereum and BNB Chain, where base currency is 0x9103…6fb2 and date since 2021-09-01, sorted by amount, highest first: full name, count and base currency symbol.

By Sayon · saved 24 September 2021 · 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", limit: 2}, date: {since: $from, till: $till}, baseCurrency: {is: $token}) {
      exchange {
        fullName
      }
      trades: count
      takers: count(uniq: takers)
      makers: count(uniq: makers)
      baseCurrency {
        symbol
      }
    }
  }
}

Variables

{"limit":10,"offset":0,"network":"bsc","token":"0x910391f631e7f1aa6a499ec5d8f2c019e9786fb2","from":"2021-09-01","till":null,"dateFormat":"%Y-%m"}

Similar queries