Uniswap Cross-Chain Trading Data Query

Query retrieving Uniswap trading data simultaneously across four major blockchain networks (Ethereum, BSC, Base, and Polygon) in a single API call.

By Edgar Nwajei · saved 19 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query CrossChainUniswapTrades {
  ethereum: EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Trade: {Dex: {ProtocolFamily: {is: "Uniswap"}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolName
        }
        AmountInUSD
        Currency {
          Symbol
          Name
        }
        Side {
          Type
          Currency {
            Symbol
          }
          Amount
          AmountInUSD
        }
      }
    }
  }
  
  binance: EVM(network: bsc) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Trade: {Dex: {ProtocolFamily: {is: "Uniswap"}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolName
        }
        AmountInUSD
        Currency {
          Symbol
          Name
        }
        Side {
          Type
          Currency {
            Symbol
          }
          Amount
          AmountInUSD
        }
      }
    }
  }
  
  base: EVM(network: base) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Trade: {Dex: {ProtocolFamily: {is: "Uniswap"}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolName
        }
        AmountInUSD
        Currency {
          Symbol
          Name
        }
        Side {
          Type
          Currency {
            Symbol
          }
          Amount
          AmountInUSD
        }
      }
    }
  }
}

Similar queries