multiple contracts with date filter

Returns 25000 DEX trades on Ethereum, where buy currency smart contract is 0xbd35…2cf8, 0xbc4c…f13d or 6 more, sorted by transaction hash: block time, buy price, buy ids, buy currency symbol, buy smart contract, buy currency name, buy amount in USD and 12 more fields.

By Divyasshree · saved 3 February 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {in: ["0xbd3531da5cf5857e7cfaa92426877b022e612cf8", "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "0x23581767a106ae21c074b2276d25e5c3e136a68b", "0x524cab2ec69124574082676e6f654a18df49a048", "0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b", "0xc0ffee8ff7e5497c2d6f7684859709225fcc5be8", "0x307af7d28afee82092aa95d35644898311ca5360", "0xb8ea78fcacef50d41375e44e6814ebba36bb33c4"]}}}}, Block: {Date: {till_relative: {months_ago: 10}}}}
      orderBy: {ascending: Transaction_Hash}
      limit: {count: 25000}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Price
          Ids
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
          Seller
          PriceInUSD
        }
        Sell {
          Amount
          Currency {
            Symbol
          }
        }
        Dex {
          ProtocolName
          SmartContract
          ProtocolVersion
          ProtocolFamily
          Pair {
            SmartContract
          }
        }
        Success
        Sender
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries