transactions volume makers of a token for a given time frame

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

By Kshitij Mahajan · saved 25 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($since: DateTime) {
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}}}, Block: {Time: {since: $since}}}
    ) {
      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}}}})
    }
  }
}

Variables

{
  "since": "2025-02-24T19:40:00Z"
}

Similar queries