Uniswap_USDC/WETH

Returns the latest DEX trades on Ethereum, where buy currency is 0xa0b8…eb48, sell currency is 0xc02a…6cc2 and exchange name is Uniswap: buy currency address, buy currency symbol, buy currency name, sell currency address, sell currency symbol, sell currency name, sell amount and 3 more fields.

By Omkar Acharekar · saved 26 May 2023 · run 5 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: { desc: "time"}
      exchangeName: {is: "Uniswap"}
      buyCurrency:{is:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
      sellCurrency:{is:"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      time: {since: "2023-05-23T08:25:00Z", till: "2023-05-23T10:25:00Z"}
    ) {
      buyCurrency {
        address
        symbol
        name
      }
      sellCurrency {
        address
        symbol
        name
      }
      sellAmount
      buyAmount
      closePrice: maximum(of: block, get: price)
      time: maximum(of: block, get: time)
      tradeAmount(in: USD)
    }
  }
}

Similar queries