ETHtestOHLC

Latest price in USD on ethereum

Returns DEX trades on Ethereum, where base currency is 0xC02a…6Cc2, quote currency is 0x6982…1933 and exchange name is Uniswap v2, sorted by time interval minute: minute, quote amount, quote price, minimum of block and maximum of block.

By Ali Farahbakhsh · saved 2 July 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {asc: "timeInterval.minute"}
      date: {since: "2022-01-01", till: "2023-07-02T05:41:37.156Z"}
      exchangeName: {is: "Uniswap v2"}
      baseCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      quoteCurrency: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
      tradeAmountUsd: {gt: 10}
    ) {
      timeInterval {
        minute(count: 1440, format: "OG")
      }
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "from": "2023-06-28",
  "till": "2023-06-28T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries