two streams

Streams DEX trades by token and token supply updates on Solana as they happen: program address, protocol family, protocol name, currency name, currency symbol, currency mint address, decimals and 15 more fields.

By Divyasshree · saved 26 May 2025 · run 2 times · Bitquery API v2

What it returns

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      where: {any: [{Trade: {Currency: {MintAddress: {endsWith: "bonk"}}}}, {Trade: {Dex: {ProtocolName: {is: "pump"}}}}]}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Currency {
          Name
          Symbol
          MintAddress
          Decimals
        }
        Amount
        AmountInUSD
        Account {
          Owner
        }
        Market {
          MarketAddress
        }
        Price
        PriceInUSD
        Side {
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
          }
          Type
        }
      }
    }
    TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {endsWith: "bonk"}}}}
    ) {
      TokenSupplyUpdate {
        Amount
        Currency {
          MintAddress
          Name
        }
        PreBalance
        PostBalance
        PostBalanceInUSD
      }
    }
  }
}

Similar queries