buy and sell volume

Returns DEX trades by token, where currency smart contract is 0xC02a…6Cc2: sum of trade amount in USD.

By Kshitij Mahajan · saved 3 January 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
    ) {
      buyVolume:sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sellVolume:sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries