buys and sells of a traders CP

Returns DEX trades by token on Solana, where side currency mint address is 2zucbz…pump and block time since 2024-06-25: count.

By CP Singh · saved 19 April 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($timestamp: DateTime, $trader: String) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: $timestamp}}, Trade: {Side: {Currency: {MintAddress: {is: "2zucbzn42wA6GQiH1myPbgJ8bbkXb5ti4ikKSAhHpump"}}}}, any: [{Trade: {Account: {Address: {is: $trader}}}}, {Trade: {Account: {Token: {Owner: {is: $trader}}}}}]}
    ) {
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "timestamp" : "2024-06-25T06:19:00Z",
  "trader" : "FeWbDQ9SpgWS8grNrpFesVquJfxVkRu1WNZerKsrkcbY",
  "mintaddress" : "2zucbzn42wA6GQiH1myPbgJ8bbkXb5ti4ikKSAhHpump"
}

Similar queries