All_pair_first_price_and_last_price_for_24_hours_time

Returns 10 DEX trades on Ethereum, where date since 2023-04-18 and date till 2023-04-18: address address, minimum of time, maximum of time, base currency symbol, base currency address, quote currency symbol and quote currency address.

By Omkar Acharekar · saved 20 April 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      date: {since: $from, till: $till}
      options: { limitBy: {limit: 1, each: "smartContract.address.address"}, limit: 10}
    ) {
      smartContract {
        address {
          address
        }
      }
      first_trade_quote_price: minimum(of: time, get: quote_price)
      last_trade_quote_price : maximum (of: time, get : quote_price)
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "from": "2023-04-18T00:00:01",
  "till": "2023-04-18T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries