Daily Celo token pair trades

Returns DEX trades on Ethereum and celo_mainnet, where base currency is 0x471e…a438, date since 2024-01-01 and date till 2024-01-10, sorted by date date: date date, count big int, base amount and base currency symbol.

By Aparna Sridhar · saved 25 January 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: countBigInt
      amount: baseAmount
      baseCurrency {
        symbol
      }
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: quote_currency)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "celo_mainnet",
  "token": "0x471ece3750da237f93b8e339c536989b8978a438",
  "from": "2024-01-01",
  "till": "2024-01-10T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries