Query by @user-8b77, updated 2026-11-13.
WITH
toDate('2026-11-10') AS target_day,
toDateTime('2026-11-10 00:00:00', 'UTC') AS day_start,
day_start + INTERVAL 1 DAY AS day_end,
'' AS after_wallet,
'So11111111111111111111111111111111111111112' AS sol,
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' AS usdc,
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB' AS usdt,
events AS
(
SELECT
signing_wallet AS wallet,
'Pump.fun' AS dex,
block_time AS trade_time,
if(direction = 'buy', quote_coin, base_coin) AS mint_in,
if(direction = 'buy', base_coin, quote_coin) AS mint_out,
if(direction = 'buy',
quote_coin_amount, base_coin_amount) AS amount_in,
if(direction = 'buy',
base_coin_amount, quote_coin_amount) AS amount_out
FROM solana.pumpfun_v2_swaps
WHERE block_date_utc = target_day
AND failed = 0
AND direction IN ('buy', 'sell')
UNION ALL
SELECT
signing_wallet,
'PumpSwap',
block_time,
if(direction = 'B', quote_token, base_token),
if(direction = 'B', base_token, quote_token),
if(direction = 'B', quote_token_amount, base_token_amount),
if(direction = 'B', base_token_amount, quote_token_amount)
FROM solana.pumpswap_all_swaps
WHERE block_date_utc = target_day
AND direction IN ('B', 'S')
UNION ALL
SELECT
toStringCutToZero(signing_wallet),
'Raydium AMM v4',
block_time,
toStringCutToZero(
if(direction = 'B', quote_coin, base_coin)
),
toStringCutToZero(
if(direction = 'B', base_coin, quote_coin)
),
if(direction = 'B', quote_coin_amount, base_coin_amount),
if(direction = 'B', base_coin_amount, quote_coin_amount)
FROM solana.raydium_all_swaps
WHERE block_date_utc = target_day
AND direction IN ('B', 'S')
UNION ALL
SELECT
signer,
'Raydium CPMM',
block_time,
input_token_mint,
output_token_mint,
tokens_in,
tokens_out
FROM solana.raydium_cpmm_swaps
WHERE block_date_utc = target_day
AND direction IN ('B', 'S')
UNION ALL
SELECT
signing_wallet,
'Raydium CLMM',
block_time,
input_mint,
output_mint,
input_amount,
output_amount
FROM solana.raydium_clmm_swaps
WHERE block_date_utc = target_day
AND failed = 0
UNION ALL
SELECT
fee_payer,
'Raydium LaunchLab',
block_time,
if(direction = 'B', quote_token, base_token),
if(direction = 'B', base_token, quote_token),
if(direction = 'B', quote_token_amount, base_token_amount),
if(direction = 'B', base_token_amount, quote_token_amount)
FROM solana.raydium_launchpad_swaps
WHERE block_date_utc = target_day
AND direction IN ('B', 'S')
UNION ALL
SELECT
signing_wallet,
'Meteora DLMM',
block_time,
if(swap_for_y = 1, base_coin, quote_coin),
if(swap_for_y = 1, quote_coin, base_coin),
-- Здесь поля хранят amount-in / amount-out.
base_coin_amount,
quote_coin_amount
FROM solana.meteora_swaps
WHERE block_date = target_day
AND swap_for_y IN (0, 1)
UNION ALL
SELECT
signing_wallet,
'Meteora DAMM v2',
block_time,
input_token,
output_token,
input_amount,
output_amount
FROM solana.meteora_damm_v2_swaps
WHERE block_date_utc = target_day
AND failed = 0
UNION ALL
SELECT
signer,
'Meteora DBC',
block_time,
if(direction = 'B', quote_coin, base_coin),
if(direction = 'B', base_coin, quote_coin),
if(direction = 'B', quote_coin_amount, base_coin_amount),
if(direction = 'B', base_coin_amount, quote_coin_amount)
FROM solana.meteora_dynamic_bonding_swaps
WHERE block_date_utc = target_day
AND direction IN ('B', 'S')
),
trading AS
(
SELECT
wallet,
countIf(
mint_out NOT IN (sol, usdc, usdt)
) AS buy_count,
countIf(
mint_in NOT IN (sol, usdc, usdt)
) AS sell_count,
uniqExactArray(
arrayFilter(
m -> m != '' AND m NOT IN (sol, usdc, usdt),
[mint_in, mint_out]
)
) AS unique_tokens,
(
sumIf(toDecimal128(amount_in, 9), mint_in = sol)
+ sumIf(toDecimal128(amount_out, 9), mint_out = sol)
) / 1000000000 AS volume_sol,
(
sumIf(toDecimal128(amount_in, 6), mint_in = usdc)
+ sumIf(toDecimal128(amount_out, 6), mint_out = usdc)
) / 1000000 AS volume_usdc,
(
sumIf(toDecimal128(amount_in, 6), mint_in = usdt)
+ sumIf(toDecimal128(amount_out, 6), mint_out = usdt)
) / 1000000 AS volume_usdt,
arraySort(groupUniqArray(dex)) AS active_dexes,
min(toTimeZone(trade_time, 'UTC')) AS first_trade,
max(toTimeZone(trade_time, 'UTC')) AS last_trade
FROM events
WHERE wallet != ''
AND wallet != '11111111111111111111111111111111'
AND wallet > after_wallet
AND mint_in != ''
AND mint_out != ''
AND amount_in > 0
AND amount_out > 0
GROUP BY wallet
ORDER BY wallet
LIMIT 100
),
creations AS
(
SELECT
toStringCutToZero(creator) AS wallet,
toStringCutToZero(mint) AS token_mint
FROM solana.pumpfun_token_creation
WHERE block_time >= day_start
AND block_time < day_end
UNION ALL
SELECT
toStringCutToZero(creator),
toStringCutToZero(mint)
FROM solana.raydium_launchpad_token_creation
WHERE block_time >= day_start
AND block_time < day_end
UNION ALL
SELECT
creator,
base_mint
FROM solana.meteora_dynamic_bonding_creations
WHERE block_time >= day_start
AND block_time < day_end
),
creation_counts AS
(
SELECT
wallet,
uniqExact(token_mint) AS created_tokens
FROM creations
WHERE wallet != ''
AND wallet > after_wallet
AND token_mint != ''
GROUP BY wallet
)
SELECT
t.wallet AS wallet,
target_day AS date,
t.buy_count AS buy_count,
t.sell_count AS sell_count,
t.unique_tokens AS unique_tokens,
t.volume_sol AS volume_sol,
t.active_dexes AS active_dexes,
t.first_trade AS first_trade,
t.last_trade AS last_trade,
ifNull(c.created_tokens, toUInt64(0)) AS created_tokens,
t.volume_usdc AS volume_usdc,
t.volume_usdt AS volume_usdt
FROM trading AS t
LEFT JOIN creation_counts AS c
ON t.wallet = c.wallet
ORDER BY t.wallet
LIMIT 100;| wallet | date | buy_count | sell_count | unique_tokens | volume_sol | active_dexes | first_trade | last_trade | created_tokens | volume_usdc | volume_usdt |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 11113HRSzZHGwsZW2gh97QpFc1kSC1e2dn3Wciby5sZ | 2026-11-10 | 2 | 0 | 1 | 0.0 | ["Meteora DLMM"] | 2026-11-10 06:59:36 | 2026-11-10 06:59:36 | 0 | 1046.284468 | 0.0 |
| 111xEicbqL5LdmFZ5zhyhtwXdskwgkScCrNxE1HuLg | 2026-11-10 | 253 | 159 | 50 | 161.347629163 | ["Meteora DAMM v2", "Pump.fun", "PumpSwap", "Raydium CLMM", "Raydium CPMM", "Raydium LaunchLab"] | 2026-11-10 00:54:35 | 2026-11-10 23:46:17 | 0 | 4600.797166 | 0.0 |
| 113UuqWWLnaPHWAJfNq8YrZepQnsMKCSQZe3SmJh2bs | 2026-11-10 | 1 | 0 | 1 | 0.001 | ["PumpSwap"] | 2026-11-10 14:22:38 | 2026-11-10 14:22:38 | 0 | 0.0 | 0.0 |
| 118hXUz3Wgj1DWqqwLni4zj1WuwARSA1hg4yKm7fzs5 | 2026-11-10 | 5 | 0 | 1 | 0.001222855 | ["PumpSwap"] | 2026-11-10 14:13:27 | 2026-11-10 14:39:55 | 0 | 0.0 | 0.0 |
| 11AgMzAKRrwAeTMndhpABXPPnkdo9Uaxuc3dbskE3QM | 2026-11-10 | 23 | 24 | 11 | 4.084605036 | ["Meteora DAMM v2", "Meteora DBC"] | 2026-11-10 00:13:19 | 2026-11-10 07:32:25 | 0 | 0.0 | 0.0 |
| 11FurLpQKeHjEU57u6nRuibtY4zPXqUi2QecgPSmhGW | 2026-11-10 | 30 | 16 | 3 | 0.000436893 | ["PumpSwap"] | 2026-11-10 02:00:09 | 2026-11-10 11:47:38 | 0 | 0.0 | 0.0 |
| 11KNHpwgNc6mqYDAwW9H9KRKXXAHAsoL2ao9CVHZWai | 2026-11-10 | 0 | 1 | 1 | 0.000133732 | ["PumpSwap"] | 2026-11-10 03:37:59 | 2026-11-10 03:37:59 | 0 | 0.0 | 0.0 |
| 11LKAYtW1sNWBB95P14PCwwUA1oiHRqrc6Rhc5zQd5z | 2026-11-10 | 1 | 0 | 1 | 0.482818227 | ["Raydium CPMM"] | 2026-11-10 20:26:17 | 2026-11-10 20:26:17 | 0 | 0.0 | 0.0 |
| 11Me812o4VhpauhtdWFLZSntkqQg6MsCDBkM84axM7q | 2026-11-10 | 2 | 0 | 1 | 0.000266479 | ["PumpSwap"] | 2026-11-10 12:55:06 | 2026-11-10 13:06:30 | 0 | 0.0 | 0.0 |
| 11QtLYarX95HjWz8S3aM6TC43V6yzULeukrqzU2Qjno | 2026-11-10 | 84 | 72 | 33 | 37.597763437 | ["Meteora DAMM v2", "Meteora DLMM", "Pump.fun", "PumpSwap", "Raydium CLMM", "Raydium CPMM", "Raydium LaunchLab"] | 2026-11-10 00:01:28 | 2026-11-10 23:58:28 | 0 | 278.499247 | 0.0 |
| 11abVTMYXV4bRmkJgF8TRP2Jp4iLDLoToHwwnpEnDgU | 2026-11-10 | 25 | 0 | 25 | 0.000795232 | ["PumpSwap"] | 2026-11-10 02:24:13 | 2026-11-10 23:41:57 | 0 | 0.0 | 0.0 |
| 11fNY6GVrR1Poi7EFxYvvRxfXiae9D1dghermhy5Qz4 | 2026-11-10 | 2 | 0 | 1 | 0.584905773 | ["Meteora DAMM v2"] | 2026-11-10 12:48:54 | 2026-11-10 12:52:11 | 0 | 0.0 | 0.0 |
| 11gaaKhvmnKmXND7gDjScJjCbTx36KqKL5gv7NEDmUL | 2026-11-10 | 10 | 18 | 1 | 0.141240205 | ["PumpSwap"] | 2026-11-10 00:05:10 | 2026-11-10 10:22:54 | 0 | 0.0 | 0.0 |
| 11notCMsV3P9H5aqLHeDtJeeVFGGkUArQ4wuXrDAtVi | 2026-11-10 | 52 | 0 | 52 | 0.013292564 | ["Meteora DAMM v2"] | 2026-11-10 00:13:51 | 2026-11-10 23:56:18 | 0 | 0.0 | 0.0 |
| 11o81v2EompoVNd4YDmwFJuHPqe4t3FZpA3uWDNYUce | 2026-11-10 | 2 | 1 | 2 | 0.544220732 | ["PumpSwap", "Raydium CPMM"] | 2026-11-10 06:13:45 | 2026-11-10 06:13:59 | 0 | 0.0 | 0.0 |
| 121278xKnHzrwMmbubRsFyQGNM14zMjTHaeN1Fj5pvMA | 2026-11-10 | 26 | 10 | 8 | 25.303837988 | ["Pump.fun", "PumpSwap", "Raydium AMM v4"] | 2026-11-10 07:08:28 | 2026-11-10 10:23:06 | 0 | 89.166915 | 0.0 |
| 121472UYnjZjLMgwS6CZFvdeUTvuucHZ346E36Y9sYJt | 2026-11-10 | 4 | 0 | 1 | 0.000734945 | ["PumpSwap"] | 2026-11-10 15:43:36 | 2026-11-10 15:54:06 | 0 | 0.0 | 0.0 |
| 1214RChrY8zGP8bsyazTQGzWBVcmv4nnMxywKW32EC7v | 2026-11-10 | 22 | 0 | 22 | 0.004908564 | ["Meteora DAMM v2"] | 2026-11-10 01:37:21 | 2026-11-10 17:33:36 | 0 | 0.0 | 0.0 |
| 1219vujJbeMboYTjZeCZtsw6tqcxC4Bt2mNKdRbJNtAB | 2026-11-10 | 3 | 0 | 1 | 12.046482832 | ["Meteora DLMM", "PumpSwap"] | 2026-11-10 16:42:20 | 2026-11-10 16:42:43 | 0 | 0.0 | 0.0 |
| 121P3tpoJNamjarLE6sMhE1FXw5AhhpGuJeq9gqgQXam | 2026-11-10 | 5 | 3 | 4 | 0.365302573 | ["PumpSwap"] | 2026-11-10 00:49:20 | 2026-11-10 23:16:20 | 0 | 0.0 | 0.0 |
| 121SdD3WEaXHsGMk8R9BkCd4UTc6RF1nbvprfEsMDrzV | 2026-11-10 | 1 | 1 | 1 | 5.027525152 | ["PumpSwap"] | 2026-11-10 10:22:01 | 2026-11-10 10:23:47 | 0 | 0.0 | 0.0 |
| 121WwHKJymRTb8GUaeApEd5PgWH8js1sVHxcRMEyqFpg | 2026-11-10 | 1 | 0 | 1 | 0.0 | ["Meteora DAMM v2"] | 2026-11-10 20:52:14 | 2026-11-10 20:52:14 | 0 | 6.799707 | 0.0 |
| 121aLE3ZhhnNByszKBQgfTRSc1geQpbmHya5iFudAXNK | 2026-11-10 | 1 | 1 | 2 | 0.0 | ["Meteora DAMM v2"] | 2026-11-10 19:21:17 | 2026-11-10 19:21:17 | 0 | 0.0 | 0.0 |
| 121bmGMYkQ8XUXa7F69f8Zm37xQGDr63xoj4KPrN2EhV | 2026-11-10 | 4 | 4 | 3 | 0.179393701 | ["Meteora DLMM", "PumpSwap"] | 2026-11-10 20:50:54 | 2026-11-10 21:30:28 | 0 | 0.0 | 0.0 |
| 121fLTPeoswyvGkv1cAKQZ8rpovXMXDJ42JAvNnn68Qf | 2026-11-10 | 55 | 18 | 3 | 0.001053336 | ["PumpSwap"] | 2026-11-10 07:58:27 | 2026-11-10 20:51:48 | 0 | 0.0 | 0.0 |
| 121j3WoTzZa6MTNQAjLNLiFmEC6SSZ5589xGww45ESVo | 2026-11-10 | 18 | 5 | 1 | 0.388909068 | ["PumpSwap"] | 2026-11-10 00:06:49 | 2026-11-10 14:58:51 | 0 | 0.0 | 0.0 |
| 121kZ5zdMhptKiWt2i4cbuvfGJece3VuwkYhKWjfW7RT | 2026-11-10 | 52 | 22 | 7 | 0.185019364 | ["PumpSwap"] | 2026-11-10 00:05:14 | 2026-11-10 22:46:44 | 0 | 0.0 | 0.0 |
| 121sNZiRwcF8NWQJfmachZdbQd7BTD2va3dfZyTHgSbS | 2026-11-10 | 1 | 0 | 1 | 0.000344463 | ["Meteora DAMM v2"] | 2026-11-10 02:09:53 | 2026-11-10 02:09:53 | 0 | 0.0 | 0.0 |
| 121xDUtZAEpNd1tnBbu2aAZGkPNT9MmGr14RH54tyymP | 2026-11-10 | 2 | 2 | 2 | 0.0 | ["PumpSwap"] | 2026-11-10 22:26:11 | 2026-11-10 22:26:15 | 0 | 0.0 | 0.0 |
| 121yLLrpPwEUQHKozuMPMvJQWwJFREn9qvdnLxdFbDwa | 2026-11-10 | 1 | 0 | 1 | 0.001997 | ["Meteora DAMM v2"] | 2026-11-10 05:30:29 | 2026-11-10 05:30:29 | 0 | 0.0 | 0.0 |
First 30 of 100 rows. Computed 2026-11-23T18:31:31Z.