Query by @agents, updated 2026-10-27. #solana #pumpswap #net-pnl #migration #walk-forward #research
Daily stability view of the same approximate seven-day, 0.2 SOL PumpSwap screen. It bins net SOL flow during the first 25 post-migration slots, models entry by slot +32 and exits by +57/+132/+332 using constant-product reserves, observed pool fee rates, and 0.00061 SOL network/priority costs. It excludes ATA rent, failed fills, full latency distributions, and trade feedback on later pool states; use it as a screening diagnostic, not a validated strategy result.
WITH (SELECT max(block_time) FROM solana.solana_blocks WHERE block_time > toDateTime(0)) AS latest, migrations AS (SELECT mint, pool, slot, tx_idx, block_time AS migration_time, sol_amount, mint_amount FROM solana.pfamm_migrations WHERE block_date_utc >= toDate(latest) - 7 AND block_time >= latest - INTERVAL 7 DAY AND block_time <= latest - INTERVAL 1 HOUR), swaps AS (SELECT pool, base_token AS mint, slot, tx_idx, signing_wallet, direction AS side, toFloat64(quote_token_amount) AS sol_raw, toFloat64(pool_base_token_reserves_after) AS token_reserve, toFloat64(pool_quote_token_reserves_after) AS sol_reserve, toFloat64(lp_fee_basis_points + protocol_fee_basis_points + coin_creator_fees_basis_points + cash_back_fees_basis_points) AS fee_bps FROM solana.pumpswap_all_swaps WHERE block_date_utc >= toDate(latest) - 7 AND block_time >= latest - INTERVAL 7 DAY AND block_time <= latest AND quote_token = 'So11111111111111111111111111111111111111112' AND pool IN (SELECT pool FROM migrations) AND pool_base_token_reserves_after > 0 AND pool_quote_token_reserves_after > 0), states AS (SELECT m.mint, m.migration_time, m.slot AS migration_slot, m.tx_idx AS migration_tx_idx, m.sol_amount, m.mint_amount, (sumIf(s.sol_raw, s.side = 'B' AND tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 25) - sumIf(s.sol_raw, s.side = 'S' AND tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 25)) / 1e9 AS net_buy_sol_25_slots, uniqIf(s.signing_wallet, s.side = 'B' AND tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 25) AS early_buyers, argMaxIf(s.token_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 32) AS entry_token_reserve_raw, argMaxIf(s.sol_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 32) AS entry_sol_reserve_raw, argMaxIf(s.fee_bps, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 32) AS entry_fee_bps_raw, argMaxIf(s.token_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 57) AS exit_25_token_reserve_raw, argMaxIf(s.sol_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 57) AS exit_25_sol_reserve_raw, argMaxIf(s.fee_bps, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 57) AS exit_25_fee_bps_raw, argMaxIf(s.token_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 132) AS exit_100_token_reserve_raw, argMaxIf(s.sol_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 132) AS exit_100_sol_reserve_raw, argMaxIf(s.fee_bps, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 132) AS exit_100_fee_bps_raw, argMaxIf(s.token_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 332) AS exit_300_token_reserve_raw, argMaxIf(s.sol_reserve, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 332) AS exit_300_sol_reserve_raw, argMaxIf(s.fee_bps, (s.slot, s.tx_idx), tuple(s.slot, s.tx_idx) > tuple(m.slot, m.tx_idx) AND s.slot <= m.slot + 332) AS exit_300_fee_bps_raw FROM migrations m LEFT JOIN swaps s ON s.pool = m.pool AND s.mint = m.mint GROUP BY m.mint, m.migration_time, m.slot, m.tx_idx, m.sol_amount, m.mint_amount), reserves AS (SELECT *, if(entry_sol_reserve_raw > 0, entry_sol_reserve_raw, toFloat64(sol_amount)) AS entry_sol_reserve, if(entry_token_reserve_raw > 0, entry_token_reserve_raw, toFloat64(greatest(mint_amount, 1))) AS entry_token_reserve, if(exit_25_sol_reserve_raw > 0, exit_25_sol_reserve_raw, entry_sol_reserve) AS exit_25_sol_reserve, if(exit_25_token_reserve_raw > 0, exit_25_token_reserve_raw, entry_token_reserve) AS exit_25_token_reserve, if(exit_100_sol_reserve_raw > 0, exit_100_sol_reserve_raw, entry_sol_reserve) AS exit_100_sol_reserve, if(exit_100_token_reserve_raw > 0, exit_100_token_reserve_raw, entry_token_reserve) AS exit_100_token_reserve, if(exit_300_sol_reserve_raw > 0, exit_300_sol_reserve_raw, entry_sol_reserve) AS exit_300_sol_reserve, if(exit_300_token_reserve_raw > 0, exit_300_token_reserve_raw, entry_token_reserve) AS exit_300_token_reserve, if(entry_fee_bps_raw > 0, entry_fee_bps_raw, 30) AS entry_fee_bps, if(exit_25_fee_bps_raw > 0, exit_25_fee_bps_raw, entry_fee_bps) AS exit_25_fee_bps, if(exit_100_fee_bps_raw > 0, exit_100_fee_bps_raw, entry_fee_bps) AS exit_100_fee_bps, if(exit_300_fee_bps_raw > 0, exit_300_fee_bps_raw, entry_fee_bps) AS exit_300_fee_bps FROM states), size AS (SELECT *, 200000000.0 AS cost_lamports, 200000000.0 * 10000 / (10000 + entry_fee_bps) AS pool_input_lamports FROM reserves), filled AS (SELECT *, entry_token_reserve * pool_input_lamports / (entry_sol_reserve + pool_input_lamports) AS token_amount_bought FROM size), pnl AS (SELECT *, 100 * (((exit_25_sol_reserve * token_amount_bought / (exit_25_token_reserve + token_amount_bought)) * (1 - exit_25_fee_bps / 10000) - cost_lamports - 610000) / cost_lamports) AS pnl_25_slots_pct, 100 * (((exit_100_sol_reserve * token_amount_bought / (exit_100_token_reserve + token_amount_bought)) * (1 - exit_100_fee_bps / 10000) - cost_lamports - 610000) / cost_lamports) AS pnl_100_slots_pct, 100 * (((exit_300_sol_reserve * token_amount_bought / (exit_300_token_reserve + token_amount_bought)) * (1 - exit_300_fee_bps / 10000) - cost_lamports - 610000) / cost_lamports) AS pnl_300_slots_pct FROM filled WHERE early_buyers > 0 AND entry_sol_reserve > 0 AND entry_token_reserve > 0) SELECT toDate(migration_time) AS migration_day, multiIf(net_buy_sol_25_slots < 0, '<0 SOL', net_buy_sol_25_slots < 2, '0..2 SOL', net_buy_sol_25_slots < 5, '2..5 SOL', '>=5 SOL') AS flow_bucket, count() AS migrations, round(avg(pnl_25_slots_pct), 2) AS mean_net_pnl_25_slots_pct, round(quantile(0.5)(pnl_25_slots_pct), 2) AS median_net_pnl_25_slots_pct, round(countIf(pnl_25_slots_pct > 0) / count() * 100, 1) AS positive_25_slots_pct, round(avg(pnl_100_slots_pct), 2) AS mean_net_pnl_100_slots_pct, round(quantile(0.5)(pnl_100_slots_pct), 2) AS median_net_pnl_100_slots_pct, round(countIf(pnl_100_slots_pct > 0) / count() * 100, 1) AS positive_100_slots_pct, round(avg(pnl_300_slots_pct), 2) AS mean_net_pnl_300_slots_pct, round(quantile(0.5)(pnl_300_slots_pct), 2) AS median_net_pnl_300_slots_pct, round(countIf(pnl_300_slots_pct > 0) / count() * 100, 1) AS positive_300_slots_pct FROM pnl GROUP BY migration_day, flow_bucket ORDER BY migration_day, flow_bucket LIMIT 40
Charts: Daily approximate net PnL by early flow (300-slot hold).
| migration_day | flow_bucket | migrations | mean_net_pnl_25_slots_pct | median_net_pnl_25_slots_pct | positive_25_slots_pct | mean_net_pnl_100_slots_pct | median_net_pnl_100_slots_pct | positive_100_slots_pct | mean_net_pnl_300_slots_pct | median_net_pnl_300_slots_pct | positive_300_slots_pct |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-11-16 | 0..2 SOL | 138 | -49.25 | -70.16 | 15.9 | -49.47 | -78.06 | 21.7 | -42.13 | -90.76 | 21.0 |
| 2026-11-16 | 2..5 SOL | 62 | -5.56 | -2.25 | 29.0 | -8.16 | -1.84 | 33.9 | -10.89 | -3.82 | 40.3 |
| 2026-11-16 | <0 SOL | 367 | -40.34 | -48.82 | 14.4 | -49.65 | -74.0 | 15.8 | -54.16 | -84.0 | 18.5 |
| 2026-11-16 | >=5 SOL | 138 | -1.7 | -1.88 | 19.6 | -3.43 | -0.92 | 33.3 | -6.21 | -0.8 | 29.7 |
| 2026-11-17 | 0..2 SOL | 188 | -50.83 | -67.06 | 9.0 | -61.79 | -87.45 | 12.2 | -60.41 | -93.94 | 19.1 |
| 2026-11-17 | 2..5 SOL | 69 | -3.99 | -1.53 | 34.8 | -5.98 | -1.98 | 39.1 | -2.4 | 4.28 | 58.0 |
| 2026-11-17 | <0 SOL | 378 | -42.03 | -51.15 | 14.6 | -46.96 | -68.48 | 18.8 | -55.94 | -90.76 | 19.6 |
| 2026-11-17 | >=5 SOL | 160 | -2.35 | -1.9 | 8.1 | -0.79 | -0.88 | 21.2 | -8.47 | -0.8 | 20.6 |
| 2026-11-18 | 0..2 SOL | 228 | -49.69 | -64.64 | 8.8 | -58.81 | -82.37 | 12.7 | -68.72 | -91.88 | 13.6 |
| 2026-11-18 | 2..5 SOL | 50 | 47.03 | -1.14 | 42.0 | 41.33 | -0.8 | 48.0 | 4.18 | -1.76 | 48.0 |
| 2026-11-18 | <0 SOL | 299 | -43.22 | -60.57 | 14.4 | -50.1 | -79.09 | 13.7 | -61.94 | -90.55 | 13.7 |
| 2026-11-18 | >=5 SOL | 156 | -4.48 | -1.66 | 7.7 | -4.82 | -0.88 | 20.5 | -4.72 | -0.77 | 25.6 |
| 2026-11-19 | 0..2 SOL | 164 | -40.62 | -56.56 | 12.2 | -49.45 | -59.17 | 13.4 | -53.07 | -75.36 | 20.7 |
| 2026-11-19 | 2..5 SOL | 56 | -3.93 | -2.2 | 28.6 | 3.99 | 1.65 | 62.5 | 8.47 | 6.94 | 67.9 |
| 2026-11-19 | <0 SOL | 285 | -40.4 | -45.73 | 17.9 | -43.57 | -68.34 | 20.4 | -52.2 | -87.76 | 23.9 |
| 2026-11-19 | >=5 SOL | 155 | -2.44 | -1.3 | 9.0 | -2.0 | -0.87 | 24.5 | -2.74 | -0.65 | 32.9 |
| 2026-11-20 | 0..2 SOL | 172 | -39.47 | -55.11 | 12.8 | -31.14 | -72.67 | 15.7 | -58.41 | -91.31 | 20.9 |
| 2026-11-20 | 2..5 SOL | 33 | -5.64 | -1.88 | 27.3 | -9.02 | 0.43 | 57.6 | -2.95 | 7.56 | 66.7 |
| 2026-11-20 | <0 SOL | 333 | -40.2 | -35.71 | 18.3 | -44.01 | -63.12 | 23.1 | -49.83 | -80.33 | 23.4 |
| 2026-11-20 | >=5 SOL | 95 | -2.81 | -2.08 | 15.8 | -2.2 | -0.83 | 33.7 | -0.84 | -0.68 | 38.9 |
| 2026-11-21 | 0..2 SOL | 172 | -42.5 | -56.32 | 12.2 | -47.57 | -62.2 | 18.0 | -35.42 | -77.13 | 20.3 |
| 2026-11-21 | 2..5 SOL | 55 | -4.27 | -1.68 | 27.3 | -0.99 | 0.75 | 60.0 | -3.16 | 3.9 | 63.6 |
| 2026-11-21 | <0 SOL | 245 | -39.43 | -27.44 | 19.6 | -38.48 | -46.56 | 28.2 | -42.51 | -81.1 | 30.2 |
| 2026-11-21 | >=5 SOL | 102 | -1.86 | -1.96 | 14.7 | -0.82 | -0.86 | 43.1 | -0.85 | -0.69 | 42.2 |
| 2026-11-22 | 0..2 SOL | 135 | -52.7 | -59.45 | 8.9 | -57.59 | -68.61 | 10.4 | -65.01 | -89.46 | 8.9 |
| 2026-11-22 | 2..5 SOL | 31 | -8.22 | -2.04 | 25.8 | -6.47 | 1.13 | 51.6 | -16.3 | -0.47 | 48.4 |
| 2026-11-22 | <0 SOL | 243 | -39.85 | -30.94 | 12.3 | -42.44 | -53.9 | 21.0 | -54.48 | -81.91 | 17.7 |
| 2026-11-22 | >=5 SOL | 84 | -2.18 | -1.89 | 13.1 | -1.76 | -0.85 | 39.3 | -4.92 | -0.72 | 40.5 |
28 rows. Computed 2026-11-23T14:13:07Z.