pairs for a given currency

Returns 1000 DEX trades on Ethereum, where base currency is 0xf4d2…421e, date since 2022-06-02 and date till 2022-06-09, sorted by count, highest first: quote currency symbol, quote currency name, quote currency address and count.

By gaurav · saved 9 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
      }
      count
    }
  }
}

Variables

{
  "limit": 1000,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0xf4d2888d29d722226fafa5d9b24f9164c092421e",
  "from": "2022-06-02",
  "till": "2022-06-09T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries