pairs for a given token

Returns 10 DEX trades on Ethereum, where base currency is 0x4e4a…469f, date since 2022-06-07 and date till 2022-06-14, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address and count.

By gaurav · saved 14 June 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
      }
      tradecount: count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0x4e4a47cac6a28a62dcc20990ed2cda9bc659469f",
  "from": "2022-06-07",
  "till": "2022-06-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries