buy volume of token

Returns DEX trades on Ethereum, where buy currency smart contract is 0x68e2…94ca, sell currency smart contract is 0xc02a…6cc2 and block time since 2024-12-01: sum of trade buy amount, sum of trade buy amount in USD, sum of trade sell amount and sum of trade sell amount in USD.

By gaurav · saved 18 December 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x68e2e5c9dff32419a108713f83274a4fb5e194ca"}}}, Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}, Block: {Time: {since: "2024-12-01T00:00:00Z", till: "2024-12-18T00:00:00Z"}}}
    ) {
      sum(of: Trade_Buy_Amount)
      usd: sum(of: Trade_Buy_AmountInUSD)
      sellside: sum(of: Trade_Sell_Amount)
      sellsideusd: sum(of: Trade_Sell_AmountInUSD)
    }
  }
}

Similar queries