token pairs of a currency

Returns 10 DEX trades on Ethereum, where base currency is 0x34f0…36a7, date since 2022-05-24 and date till 2022-05-31, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address, count and address address.

By gaurav · saved 31 May 2022 · 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
      pool: smartContract{
        address{
          address
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0x34f0915a5f15a66eba86f6a58be1a471fb7836a7",
  "from": "2022-05-24",
  "till": "2022-05-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries