trade vol updated error

trade vol updated

Returns DEX trades by token on Ethereum, where pair smart contract is 0x6b6c…1f10 and block time since 2024-04-25: sum of trade amount, side smart contract and smart contract.

By Et · saved 26 April 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($address: String!, $time: DateTime!) {
      EVM(network: eth, dataset: combined) {
        DEXTradeByTokens(
          where: {Block: {Time: {since: $time}}, Trade: {Dex: {Pair: {SmartContract: {is: $address}}}}}
        ) {
          Trade_Amount: sum(of: Trade_Amount)
          Trade {
            Side {
              Currency {
                SmartContract
              }
            }
            token_bought: Currency {
              SmartContract
            }
          }
        }
      }
    }

Variables

{"address": "0x6b6c7beadce465f8f2ada88903bdbbb170fa1f10", "time": "2024-04-25T16:37:55Z"}

Similar queries