ETH Price based on Date - Time

Returns the latest DEX trade on Ethereum, where base currency is 0xC02a…6Cc2, quote currency is 0xA0b8…eB48 and time before 2024-01-11: block height, timestamp time, base currency symbol, quote currency symbol and quote price.

By Mikhail Chudinov · saved 11 January 2024 · run 25 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      quoteCurrency: {is: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}
      options: {desc: ["block.height"], limit: 1}
      time: {before: "2024-01-11T12:00:00.00"}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries