Uniswap v2 and Uniswap V3 Trades

Returns the latest 100 DEX trades on Ethereum, where DEX owner address is 0x1f98…f984 or 0x5c69…aa6f: block number, block time, from, to, transaction hash, delegated, delegated to and 21 more fields.

By gaurav · saved 1 June 2023 · run 46 times · Bitquery API v2

What it returns

Filters

The query

query {
  EVM(network: eth) {
    buyside: DEXTrades(
      limit: {count: 100}
      where: {
        Trade: {
          Dex:{
            OwnerAddress: {in: ["0x1f98431c8ad98523631ae4a59f267346ea31f984",
            "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"]}
          }
        }
      }
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Dex{
          Delegated
          DelegatedTo
          OwnerAddress
          Pair{
            Decimals
            Name
            SmartContract
          }
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
   
  }
}

Similar queries