tokens price change in solana

Streams DEX trades by token on Solana as they happen, where currency mint address is 3NZ9JM…qmJh and side currency mint address is 111111…1111, So1111…1112 or 4 more: quantile of trade price in USD, sum of trade side amount in USD, market address, protocol name, protocol family, price in USD, side type and 3 more fields.

By Divyasshree · saved 17 March 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription LatestTrades($token: String) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {in: ["11111111111111111111111111111111", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}}}}
    ) {
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      volume: sum(of: Trade_Side_AmountInUSD)
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        close: PriceInUSD
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
        }
      }
    }
  }
}

Variables

{
  "token": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh"
}

Similar queries