query to get all buys of a token

Streams DEX trades by token on Solana as they happen, where currency mint address is 2u3ufZ…pump and side type is buy: block time, transaction signature, signer, account address, account owner, token owner, trade amount and 16 more fields.

By Akshat · saved 23 September 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Side: {Type: {is: buy}}, Currency: {MintAddress: {is: "2u3ufZ5defxwPXMixvvQpSs68PDNzHTdE52t9Crspump"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      Transaction{
        Signature
        Signer
      }
      Trade {
        Account {
          Address
          Owner
          Token {
            Owner
          }
        }
        Amount
        AmountInUSD
        Currency {
          MintAddress
          Name
          Symbol
        }
        Dex{
          ProgramAddress
          ProtocolName
        }
        PriceInUSD
        Price
        Side {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
    }
  }
}

Similar queries