Time_Frame_Check

Returns DEX trades on Ethereum, where base currency is 0xc02a…6cc2, quote currency is 0x6982…1933 and exchange name is Uniswap or Uniswap v2, sorted by time interval second, highest first: second, buy currency address, buy currency name, sell currency address, sell currency name, transaction hash, sell amount and buy amount.

By Omkar Acharekar · saved 23 June 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $to: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      time: {since: $from, till: $to}
      options: {desc: ["timeInterval.second"]}
      exchangeName: {in: ["Uniswap", "Uniswap v2"]}
      baseCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      quoteCurrency: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
    ) {
      timeInterval {
        second
      }
      buyCurrency {
        address
        name
      }
      sellCurrency {
        address
        name
      }
      transaction {
        hash
      }
      sellAmount
      buyAmount
    }
  }
}

Variables

{
  "network": "ethereum",
  "from": "2023-05-03T08:00:00Z",
  "to": "2023-05-03T09:59:50Z"
}

Similar queries