Query editor
-- pump.fun signal features, one row per native-SOL launch: dev history, momentum buckets, and copy returns.-- Feeds the momentum and dev-reputation tests (sol_41). Train Sep 20 - Oct 4, test Oct 5 - 12, live Oct 13+.-- Dev history: launches and graduations by the same creator strictly before this launch (graduation time < t0).-- Momentum: distinct non-creator buyers per 30 s bucket (b1 = 0-30 s ... b6 = 150-180 s) and virtual SOL at 30 s steps.-- Returns r<E>: buy 0.1 SOL E seconds after launch, sell 120 s later. Constant-product fills capped by the curve's-- real tokens (buy) and real SOL plus our deposit (sell); our buy stays in the curve at exit; launch's highest fee-- (min 1.25%) both ways. No return if the curve completed before entry.WITH hist AS (SELECT mint, coalesce(creator, "user") AS creator, evt_block_time AS t0,coalesce(quote_mint, '11111111111111111111111111111111')IN ('11111111111111111111111111111111', 'So11111111111111111111111111111111111111112') AS sol_q,coalesce(is_mayhem_mode, false) AS mayhemFROM pumpdotfun_solana.pump_evt_createeventWHERE evt_block_date BETWEEN DATE '2026-08-20' AND DATE '2026-10-17'),grad AS (SELECT mint, min(evt_block_time) AS tcFROM pumpdotfun_solana.pump_evt_completeeventWHERE evt_block_date BETWEEN DATE '2026-08-20' AND date_add('day', 1, DATE '2026-10-17')GROUP BY 1),ev AS (SELECT h.creator, h.mint, h.t0 AS t, 1 AS is_launch, 0 AS is_grad FROM hist hUNION ALLSELECT h.creator, h.mint, g.tc, 0, 1 FROM hist h JOIN grad g ON g.mint = h.mint),dev AS (SELECT mint, n_prior, g_prior FROM (SELECT mint, is_launch, sum(is_launch) OVER w - 1 AS n_prior, sum(is_grad) OVER w AS g_priorFROM evWINDOW w AS (PARTITION BY creator ORDER BY t, is_launch ROWS UNBOUNDED PRECEDING)) WHERE is_launch = 1),cr AS (SELECT h.mint, h.creator, h.t0, h.mayhem, d.n_prior, d.g_prior, g.tcFROM hist h JOIN dev d ON d.mint = h.mint LEFT JOIN grad g ON g.mint = h.mintWHERE h.sol_q AND h.t0 >= TIMESTAMP '2026-09-20 00:00:00 UTC' AND h.t0 < TIMESTAMP '2026-10-17 18:00:00 UTC'),tr AS (SELECT t.mint, cr.creator,date_diff('millisecond', cr.t0, t.evt_block_time) / 1e3 AS s,t.evt_block_slot * 100000000 + t.evt_tx_index * 10000+ coalesce(t.evt_outer_instruction_index, 0) * 100 + coalesce(t.evt_inner_instruction_index, 0) AS seq,coalesce(t.is_buy, t.isBuy) AS is_buy, t."user" AS w,CAST(t.virtual_sol_reserves AS double) / 1e9 AS vsol,CAST(t.virtual_token_reserves AS double) / 1e6 AS vtok,CAST(t.real_sol_reserves AS double) / 1e9 AS rsol,CAST(t.real_token_reserves AS double) / 1e6 AS rtok,(CAST(coalesce(t.fee_basis_points, uint256 '95') AS double)+ CAST(coalesce(t.creator_fee_basis_points, uint256 '30') AS double)) / 1e4 AS feeFROM pumpdotfun_solana.pump_evt_tradeevent tJOIN cr ON cr.mint = t.mintWHERE t.evt_block_date BETWEEN DATE '2026-09-20' AND DATE '2026-10-17'AND t.evt_block_time <= cr.t0 + interval '340' second),agg AS (SELECT mint, greatest(max(fee), 0.0125) AS f,count(DISTINCT w) FILTER (WHERE is_buy AND w <> creator AND s <= 30) AS b1,count(DISTINCT w) FILTER (WHERE is_buy AND w <> creator AND s > 30 AND s <= 60) AS b2,count(DISTINCT w) FILTER (WHERE is_buy AND w <> creator AND s > 60 AND s <= 90) AS b3,