N8n v2 api

Returns the latest 100 DEX trades on Ethereum: block time, transaction hash, buy amount, buy price, buy currency symbol, sell amount, sell price and sell currency symbol.

By Vlad Andrei Costin · saved 15 August 2025 · Bitquery API v2

What it returns

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {any: [{Trade: {Buy: {Currency: {SmartContract: {is: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}}}, Sell: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}}, {Trade: {Buy: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}, Sell: {Currency: {SmartContract: {is: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"}}}}}]}
      orderBy: {descending: Block_Time}
      limit: {count: 100}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Price
          Currency {
            Symbol
          }
        }
        Sell {
          Amount
          Price
          Currency {
            Symbol
          }
        }
      }
    }
  }
}

Similar queries