trades_crosschain_compare

Returns DEX trades on Ethereum and Polygon, where date since 2024-05-08 and date till 2024-05-15, sorted by trade amount, highest first: count and trade amount.

By George · saved 15 May 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(options: {desc: "tradeAmount"}, date: {since: $from, till: $till}) {
      trades: count
      tradeAmount(in: USD)
      currencies: count(uniq: buy_currency)
      contracts: count(uniq: smart_contracts)
    }
  }
  polygon:ethereum(network: matic) {
    dexTrades(options: {desc: "tradeAmount"}, date: {since: $from, till: $till}) {
      trades: count
      tradeAmount(in: USD)
      currencies: count(uniq: buy_currency)
      contracts: count(uniq: smart_contracts)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "from": "2024-05-08",
  "till": "2024-05-15T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries