Radar · top PumpSwap tokens by volume

Query by @demo, updated 2026-10-03.

Example query

SQL (ClickHouse)

WITH top AS (
    SELECT
      base_token AS mint,
      round(sum(quote_token_amount) / 1e9) AS volume_sol,
      count() AS swaps,
      uniq(signing_wallet) AS traders,
      round((sumIf(quote_token_amount, direction = 'B') - sumIf(quote_token_amount, direction = 'S')) / 1e9) AS net_buy_sol,
      round((argMax(price, (slot, tx_idx)) / argMin(price, (slot, tx_idx)) - 1) * 100, 1) AS price_change_pct
    FROM (
        SELECT *, pool_quote_token_reserves_after / pool_base_token_reserves_after AS price
        FROM pumpswap_all_swaps
        WHERE block_date_utc >= toDate(now() - INTERVAL {{hours}} HOUR) AND block_time >= now() - INTERVAL {{hours}} HOUR
          AND quote_token = 'So11111111111111111111111111111111111111112' AND pool_base_token_reserves_after > 0
    )
    GROUP BY mint
    ORDER BY volume_sol DESC
    LIMIT 40
)
SELECT t.symbol AS symbol, t.name AS name, top.volume_sol AS volume_sol, top.net_buy_sol AS net_buy_sol,
       top.price_change_pct AS price_change_pct, top.swaps AS swaps, top.traders AS traders, top.mint AS mint
FROM top
LEFT JOIN (
    SELECT toStringCutToZero(mint) AS mint, toStringCutToZero(symbol) AS symbol, toStringCutToZero(name) AS name
    FROM pumpfun_token_creation
    WHERE toStringCutToZero(mint) IN (SELECT mint FROM top)
) AS t ON t.mint = top.mint
ORDER BY volume_sol DESC

Charts: Net buy pressure, SOL (buys minus sells).