trade vol

Returns DEX trades by token on Ethereum, where pair smart contract is 0x67ce…f33c and block time since 2024-04-24: sum of trade amount, side currency name, side amount, side amount in USD, currency name, trade amount and amount in USD.

By gaurav · saved 25 April 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: archive) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: "2024-04-24T10:50:00Z"}}, Trade: {Dex: {Pair: {SmartContract: {is: "0x67cea36eeb36ace126a3ca6e21405258130cf33c"}}}}}
    ) {
      trade_amount: sum(of: Trade_Amount)
      Trade {
        Side {
          Currency {
            Name
          }
          Amount
          AmountInUSD
        }
        token_bought: Currency {
          Name
        }
        Amount
        AmountInUSD
      }
    }
  }
}

Similar queries