getPairInfoBitQuery_eth

Returns one DEX trade on Ethereum, where base currency is 0xb9ef…3b78, quote currency is 0xc02a…6cc2 and exchange name is Uniswap or Uniswap v2, sorted by block height: block height, timestamp time, decimals, base currency symbol, quote currency symbol, address address and day.

By Victor · saved 13 September 2022 · run 15 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      exchangeName: {in: ["Uniswap", "Uniswap v2"]}
      options: {asc: ["block.height"], limit: 1}
      baseCurrency: {is: "0xb9ef770b6a5e12e45983c5d80545258aa38f3b78"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      block {
        height
        timestamp {
          time(format: "%m/%d/%Y %H:%M:%S")
        }
      }
      baseCurrency {
        decimals
        symbol
      }
      quoteCurrency {
        decimals
        symbol
      }
      smartContract {
        address {
          address
        }
      }
      timeInterval {
        day(count: 10)
      }
    }
  }
}

Similar queries