problem with query

Returns DEX trades by token on Ethereum, where pair smart contract is 0x5926…e9cd, block time since 2024-02-19 and block time till 2024-02-20: smart contract, sum of trade amount and trade count.

By Richard · saved 20 February 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query


query ActiveUsers($addresses: [String!], $since: DateTime, $till: DateTime) {
  EVM(dataset: archive, network: eth) {
    DEXTradeByTokens(
      where: {
        Block: {Time: {since: $since, till: $till}},
        Trade: {
          Dex: {
            Pair: {
              SmartContract: {
                in: $addresses
              }
            }
          }
        }
      }
    ) {
      Trade {
        Dex {
          Pair {
            SmartContract
          }
        }
        volume: sum(of: Trade_Amount)
        distinctSenders: count(distinct: Trade_Sender)
      }
    }
  }
}

Variables

{"addresses":["0x59262237ae60910990a1cbb1dc8feb865d46e9cd"],"since":"2024-02-19T23:38:56.090Z","till":"2024-02-20T23:38:56.089Z"}

Similar queries