Latest trade for USDT — WETH currency pair on Uniswap protocol (V2)

Returns the latest 10 DEX trades on Ethereum, where buy currency is 0xdac1…1ec7, sell currency is 0xc02a…6cc2 and protocol is Uniswap v2: block height, iso8601, transaction hash, trade index, buy currency symbol, buy currency address, buy amount and 9 more fields.

By Mann · saved 9 October 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(options: {limit: 10, desc: ["block.height", "tradeIndex"]},
      protocol: {is: "Uniswap v2"}, 
      buyCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"},
      sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
      }
      tradeIndex
      buyCurrency {
        symbol
        address
      }
      buyAmount
      sellCurrency {
        symbol
        address
      }
      sellAmount
      maker {
        address
        annotation
      }
      taker {
        address
        annotation
      }
      protocol
      smartContract {
        address {
          address
          annotation
        }
        contractType
      }
    }
  }
}

Similar queries