Seven-day PumpSwap net PnL by migration day and early flow (0.2 SOL)

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.

SQL (ClickHouse)

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).

Result

migration_dayflow_bucketmigrationsmean_net_pnl_25_slots_pctmedian_net_pnl_25_slots_pctpositive_25_slots_pctmean_net_pnl_100_slots_pctmedian_net_pnl_100_slots_pctpositive_100_slots_pctmean_net_pnl_300_slots_pctmedian_net_pnl_300_slots_pctpositive_300_slots_pct
2026-11-160..2 SOL138-49.25-70.1615.9-49.47-78.0621.7-42.13-90.7621.0
2026-11-162..5 SOL62-5.56-2.2529.0-8.16-1.8433.9-10.89-3.8240.3
2026-11-16<0 SOL367-40.34-48.8214.4-49.65-74.015.8-54.16-84.018.5
2026-11-16>=5 SOL138-1.7-1.8819.6-3.43-0.9233.3-6.21-0.829.7
2026-11-170..2 SOL188-50.83-67.069.0-61.79-87.4512.2-60.41-93.9419.1
2026-11-172..5 SOL69-3.99-1.5334.8-5.98-1.9839.1-2.44.2858.0
2026-11-17<0 SOL378-42.03-51.1514.6-46.96-68.4818.8-55.94-90.7619.6
2026-11-17>=5 SOL160-2.35-1.98.1-0.79-0.8821.2-8.47-0.820.6
2026-11-180..2 SOL228-49.69-64.648.8-58.81-82.3712.7-68.72-91.8813.6
2026-11-182..5 SOL5047.03-1.1442.041.33-0.848.04.18-1.7648.0
2026-11-18<0 SOL299-43.22-60.5714.4-50.1-79.0913.7-61.94-90.5513.7
2026-11-18>=5 SOL156-4.48-1.667.7-4.82-0.8820.5-4.72-0.7725.6
2026-11-190..2 SOL164-40.62-56.5612.2-49.45-59.1713.4-53.07-75.3620.7
2026-11-192..5 SOL56-3.93-2.228.63.991.6562.58.476.9467.9
2026-11-19<0 SOL285-40.4-45.7317.9-43.57-68.3420.4-52.2-87.7623.9
2026-11-19>=5 SOL155-2.44-1.39.0-2.0-0.8724.5-2.74-0.6532.9
2026-11-200..2 SOL172-39.47-55.1112.8-31.14-72.6715.7-58.41-91.3120.9
2026-11-202..5 SOL33-5.64-1.8827.3-9.020.4357.6-2.957.5666.7
2026-11-20<0 SOL333-40.2-35.7118.3-44.01-63.1223.1-49.83-80.3323.4
2026-11-20>=5 SOL95-2.81-2.0815.8-2.2-0.8333.7-0.84-0.6838.9
2026-11-210..2 SOL172-42.5-56.3212.2-47.57-62.218.0-35.42-77.1320.3
2026-11-212..5 SOL55-4.27-1.6827.3-0.990.7560.0-3.163.963.6
2026-11-21<0 SOL245-39.43-27.4419.6-38.48-46.5628.2-42.51-81.130.2
2026-11-21>=5 SOL102-1.86-1.9614.7-0.82-0.8643.1-0.85-0.6942.2
2026-11-220..2 SOL135-52.7-59.458.9-57.59-68.6110.4-65.01-89.468.9
2026-11-222..5 SOL31-8.22-2.0425.8-6.471.1351.6-16.3-0.4748.4
2026-11-22<0 SOL243-39.85-30.9412.3-42.44-53.921.0-54.48-81.9117.7
2026-11-22>=5 SOL84-2.18-1.8913.1-1.76-0.8539.3-4.92-0.7240.5

28 rows. Computed 2026-11-23T14:13:07Z.