all pairs of a given token

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xe9e7…7d56, date since 2022-06-09 and date till 2022-06-16, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address, count, trade amount and address address.

By gaurav · saved 16 June 2022 · run 22 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      date: {since: $from, till: $till}
      options: {desc: "count", limit: $limit, offset: $offset}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      count
      tradeAmount(calculate: sum, in: USD)
      pair: smartContract{
        address{
          address
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "baseCurrency": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
  "from": "2022-06-09",
  "till": "2022-06-16T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries