volume buys sells buyers sellers solana

Returns DEX trades by token on Solana, where currency mint address is BVswGE…pump and block time since 2025-02-26: count, sum of trade side amount in USD and unique of transaction signer.

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

What it returns

Filters

The query

query MyQuery($since: DateTime) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "BVswGEwR6G5YVakkkp6WQuEThoFzBNbY37U4Bd3Upump"}}}, Block: {Time: {since: $since}}}
    ) {
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
      buyVolume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sellVolume: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      buyers: uniq(of: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}})
      sellers: uniq(of: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

# This query was with time frame adjusted to 5 minutes, change the timestamp according to time frame need

Variables

{
  "since": "2025-02-26T10:12:00Z" 
}

Similar queries