Check_With

Returns the latest DEX trades on Ethereum and Polygon, where buy currency is 0x2791…4174, sell currency is 0x7ceb…f619 and exchange name is Uniswap v3: 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 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: matic) {
    dexTrades(
      options: { desc: "time"}
      exchangeName: {is: "Uniswap v3"}
      buyCurrency:{is:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}
      sellCurrency:{is:"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619"}
      time: {since: "2023-05-22T10: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