buy&sell_volume_1hr

problematic currencies

Returns DEX trades on Ethereum, where pair smart contract is 0x7945…cf3e, block time till 2024-05-16 and block time since 2024-05-16: sum of trade sell amount in USD and sum of trade buy amount in USD.

By Omkar_BQ · saved 16 May 2024 · run 14 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Dex: {Pair: {SmartContract: {is: "0x7945819d6cab17f94c4089c28767e164ed4acf3e"}}}}, Block: {Time: {till: "2024-05-16T10:15:23Z", since: "2024-05-16T09:15:23Z"}}}
    ) {
      buy_volume_in_usd: sum(
        of: Trade_Sell_AmountInUSD
        if: {Trade: {Sell: {Currency: {SmartContract: {is: "0x44aad22afbb2606d7828ca1f8f9e5af00e779ae1"}}}}}
      )
      sell_volume_in_usd: sum(
        of: Trade_Buy_AmountInUSD
        if: {Trade: {Buy: {Currency: {SmartContract: {is: "0x44aad22afbb2606d7828ca1f8f9e5af00e779ae1"}}}}}
      )
    }
  }
}

Similar queries