token_ohlc

Returns 5 DEX trades on Ethereum, where base currency is 0x1f98…f984 and time since 2024-05-16, sorted by trade amount, highest first: quote currency address, quote currency symbol, trade amount, count, maximum of block, minimum of block, maximum of quote price and minimum of quote price.

By Coinpedia · saved 12 June 2024 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "tradeAmount", limit: 5}
      baseCurrency: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}
      time: {since: "2024-05-16T10:49:02Z"}
    ) {
      quoteCurrency {
        address
        symbol
      }
      tradeAmount(in: USD)
      trades: count
      close_date_n_time: maximum(of: block, get: time )
      open_date_n_time: minimum(of: block, get: time)
      high_date_n_time: maximum(of: quote_price, get: time )
      low_date_n_time: minimum(of: quote_price, get: time)
      close_price: maximum(of: block, get: quote_price)
      open_price: minimum(of: block, get: quote_price)
      high_price: maximum(of: quote_price, get: quote_price)
      low_price: minimum(of: quote_price, get: quote_price)
    }
  }
}

Similar queries