just token volume

Returns DEX trades by token on Solana, where account owner is 52Jz92…PmRj, sorted by tokens, highest first: currency mint address, currency name, currency symbol and sum of trade amount.

By rishaan agrawal · saved 1 March 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($walletAddress: String!) {
  Solana(dataset: combined) {
    # Get all tokens traded by the wallet
    DEXTradeByTokens(
      orderBy: {descendingByField: "tokens"}
      where: {Trade: {Account: {Owner: {is: $walletAddress}}}}
    ) {
      # Group by unique tokens
      Trade {
        Currency {
          MintAddress
          Name
          Symbol
        }
      }
      tokens: sum(of: Trade_Amount)
    }
  }
}

Variables

{
  "walletAddress": "52Jz92hAxU9rwVShAMGptB9zUspkt2gv7ED7LhSNPmRj"
}

Similar queries