Five-minute-volume

Returns DEX trades on Base, where buy currency smart contract is 0x532f…42E4 and sell currency smart contract is 0x4200…0006: sum of trade buy amount in USD and block time.

By Kshitij Mahajan · saved 26 September 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: base) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x532f27101965dd16442E59d40670FaF5eBB142E4"}}}, Sell: {Currency: {SmartContract: {is: "0x4200000000000000000000000000000000000006"}}}}}
    ) {
      volume: sum(of: Trade_Buy_AmountInUSD)
      Block {
        Time(interval: {count: 5, in: minutes})
      }
    }
  }
}

Similar queries