transactions volume makers of a token

Returns DEX trades by token on Ethereum, where currency smart contract is 0x5149…86ca: count, sum of trade amount in USD and unique of transaction from.

By Kshitij Mahajan · saved 25 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}}}}
    ) {
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      buyVolume: sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sellVolume: sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
      buyers:uniq(of: Transaction_From, if: {Trade: {Side: {Type: {is: buy}}}})
      sellers:uniq(of: Transaction_From, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries