pairs for a token

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x55d3…7955, date since 2022-05-12 and date till 2022-05-19, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address, address address and count.

By gaurav · saved 19 May 2022 · run 3 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
      }
      pairtoken: smartContract {
        address {
          address
          address
        }
      }
      count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "baseCurrency": "0x55d398326f99059ff775485246999027b3197955",
  "from": "2022-05-12",
  "till": "2022-05-19T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries