24h prices

24h token prices

Returns DEX trades on Ethereum, where base currency is 0x95ad…c4ce, 0x5149…86ca or 1 more and time since 2022-05-15, sorted by base currency symbol block timestamp time time interval day, highest first: day, base currency address, base currency symbol, base currency name, block height, timestamp time, base amount and 7 more fields.

By jibigas · saved 11 November 2024 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    list1: dexTrades(
      options: {limitBy: {each: "baseCurrency.symbol", limit: 10}, desc: ["baseCurrency.symbol","block.timestamp.time", "timeInterval.day"]}

      baseCurrency: {in: ["0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce","0x514910771af9ca656af840dff83e8264ecf986ca","0x1facd66783ff574a4e4b2be080803f61072ddab0"]}
      time: {since: "2022-05-15T00:00:00"}
    ) {
      timeInterval {
        day(count: 1)
      }
      baseCurrency {
        address
        symbol
        name
      }
      block {
        height
          timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      
      
      baseAmount
      quoteAmount
      quotePrice      
      tradeAmount(in: USD)
      quotePrice
      quoteCurrency(quoteCurrency:{is:"0xdac17f958d2ee523a2206206994597c13d831ec7"}) {
        address
        symbol
        name
      }
      price: expression(get: "quoteAmount / baseAmount")
    }
  }
}

Similar queries