Live data For 24h Data By 1h Interval

Returns DEX trades on Ethereum, where buy currency smart contract is 0x1f98…f984, block time since 2025-02-06 and block time till 2025-02-07, sorted by block time: buy currency name, buy currency symbol, buy price, buy price in USD and block time.

By Aman · saved 7 February 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {Buy: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}}}
        Block: {Time: {since: "2025-02-06T00:00:00Z", till: "2025-02-07T00:00:00Z"}}
      }
      orderBy: {ascending: Block_Time}
      limitBy: {by: Block_Number}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
          }
          Price
          PriceInUSD
        }
      }
      Block {
        Time(interval: {count: 1, in: hours, offset: 1}) # Groups data into hourly intervals
      }
    }
  }
}

Similar queries