Uniswap_data

Returns the latest 1000 DEX trades on Ethereum, where DEX protocol name is uniswap_v3 or uniswap_v2: block number, block time, from, to, transaction hash, buy amount, buy buyer and 15 more fields.

By George · saved 18 April 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    buyside: DEXTrades(
      limit: {count: 1000}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {ProtocolName: {in: ["uniswap_v3","uniswap_v2"]}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
          Pair {
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries