volume in a specific price band

Returns DEX trades by token on Ethereum, where currency smart contract is 0xc02a…6cc2, side currency smart contract is 0xdac1…1ec7 and DEX protocol family is Uniswap: sum of trade amount in USD.

By Akshat · saved 4 November 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery ($priceLow: Float, $priceHigh: Float){
  EVM(network: eth, dataset: archive) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Side: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}, Dex: {ProtocolFamily: {is: "Uniswap"}}, PriceInUSD: {ge: $priceLow, le: $priceHigh}}, Block: {Time: {since: "2025-01-01T01:00:00Z", till: "2025-01-07T01:00:00Z"}}, TransactionStatus: {Success: true}}
    ) {
      volume: sum(of: Trade_AmountInUSD)
    }
  }
}

Variables

{
  "priceLow": "3000",
  "priceHigh": "4000"
}

Similar queries