test dex trader

Returns 10 DEX trades on Ethereum, where protocol is Uniswap v2, sell currency is USDT, WBNB or 4 more and buy currency is not USDT, WBNB or 4 more, sorted by trades, highest first: taker address, maker address, address address, buy currency symbol, buy amount and count.

By DO QUOC KHANH · saved 1 February 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "trades"}
      protocol: {is: "Uniswap v2"}
      sellCurrency: {in: ["USDT", "WBNB", "BUSD", "USDC", "DAI", "WETH"]}
      buyCurrency: {notIn: ["USDT", "WBNB", "BUSD", "USDC", "DAI", "WETH"]}
      any: {txSender: {}, txHash: {}}
    ) 
    ##########
    {  
      taker {
        address
      }
      maker {
        address
      }
      address {
        address
      }
      buyCurrency {
        symbol
      }
      buyAmount
      trades: count
    }
  }
}

Similar queries