Webhook - Uniswap v2 & V3 Trades

Streams the latest 100 DEX trades on Ethereum as they happen, 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 29 June 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth, trigger_on: head) {
    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