latest trades of pair on Uniswap

Returns the latest 50 DEX trades by token on Ethereum, where side currency smart contract is 0xa0b8…eb48, currency smart contract is 0xc02a…6cc2 and DEX protocol name is uniswap_v3, uniswap_v2 or 1 more: block time, owner address, protocol family, protocol name, currency symbol, smart contract, currency name and 9 more fields.

By Divyasshree · saved 15 May 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}, Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Dex: {ProtocolName: {in: ["uniswap_v3", "uniswap_v2", "uniswap_v1"]}}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Dex {
          OwnerAddress
          ProtocolFamily
          ProtocolName
        }
        Currency {
          Symbol
          SmartContract
          Name
        }
        Price
        AmountInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Similar queries