example

Returns 25000 DEX trades on Ethereum, where buy currency smart contract is 0x9Ac9…77Fd or 0x6874…2f38, sorted by block time: 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: ["0x9Ac9468E7E3E1D194080827226B45d0B892C77Fd", "0x68749665ff8d2d112fa859aa293f07a622782f38"]}}}}}
      orderBy: {ascending: Block_Time}
      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