Maker/Taker

Returns 10 DEX trades on Ethereum, where buy currency is 0x27c7…6634 or 0xc02a…6cc2, sell currency is 0x27c7…6634 or 0xc02a…6cc2 and exchange name is Uniswap, sorted by time interval second, highest first: second, buy currency symbol, buy currency address, sell currency symbol, sell currency address, buy amount, sell amount and 4 more fields.

By Kevin · saved 18 November 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "timeInterval.second"}
      exchangeName: {in: ["Uniswap"]}      
      buyCurrency: {in: ["0x27c70cd1946795b66be9d954418546998b546634","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}
      sellCurrency: {in: ["0x27c70cd1946795b66be9d954418546998b546634","0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}
    ) {
      timeInterval {
        second(count: 1)
      }
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      buyAmount
      sellAmount
      buyAmountEth: buyAmount(in: ETH)
      sellAmountEth: sellAmount(in: ETH)
      buyAmountUsd: buyAmount(in: USD)
      sellAmountUsd: sellAmount(in: USD)
      trades: count
          smartContract {
        address {
          address
        }
      }
      taker {
        address
      }
      maker {
        address
      }
      address(makerOrTaker: {}) {
        address
      }
    }
  }
}

Similar queries