volume

Returns the latest DEX trades by token on Ethereum, where currency smart contract is 0xb28a…1306 and block date since 2024-04-04: block date, average of trade price in USD and sum of trade side amount in USD.

By gaurav · saved 4 April 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token: String, $since: String) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Date"}
      where: {Block: {Date: {since: $since}}, Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      Block {
        Date(interval: {in: days, count: 1})
      }
      price: average(of: Trade_PriceInUSD)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0xb28a3778e1A78a8c327693516ed4F5B11db41306",
  "since": "2024-04-04"
}

Similar queries