ETH_price_history_

Returns DEX trades on Ethereum, where base currency is 0xC02a…6Cc2, quote currency is 0xdAC1…1ec7 and time since 2024-01-01, sorted by time interval day, highest first: day, base currency symbol, quote currency symbol and quote price.

By Omkar_BQ · saved 28 June 2024 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "timeInterval.day"}
      baseCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      quoteCurrency: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"} # USDT contract address on Ethereum
      time: {since: "2024-01-01T00:00:00"}
    ) {
      timeInterval {
        day
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      median: quotePrice(calculate: median)
    }
  }
}

Similar queries