ohlcv_roni

Returns 5 DEX trades on Ethereum, where smart contract address is 0x88e6…5640, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By George · saved 24 June 2024 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 5, desc: "timeInterval.minute"}
      smartContractAddress: {is: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"}
    ) {
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      baseAmountInUSD: baseAmount(in: USD)
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      quoteAmountInUSD: quoteAmount(calculate:average, in: USD )
      trades: count
      quotePrice
      average_price: quotePrice(calculate: average)
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      averagePriceInUSD: expression(get: "quoteAmountInUSD/baseAmount")
    }
  }
}

Similar queries