All pools of a token

Returns 10 DEX trades on Ethereum, where base currency is 0x8390…02d5, date since 2023-11-14 and date till 2023-11-21, sorted by count, highest first: base currency symbol, base currency address, base currency name, quote currency symbol, quote currency name, quote currency address, address address and 3 more fields.

By gaurav · saved 21 November 2023 · run 8 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}
    ) {
      baseCurrency {
        symbol
        address
        name
      }
      quoteCurrency {
        symbol
        name
        address
      }
      pool: smartContract {
        address {
          address
        }
      }
      exchange {
        address {
          address
        }
        fullName
      }
      protocol
      count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0x8390a1da07e376ef7add4be859ba74fb83aa02d5",
  "from": "2023-11-14",
  "till": "2023-11-21T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries