Query editor
WITH quiet_days_volume AS (-- Calculate daily volume for all tokensSELECT token_bought_symbol AS token, DATE_TRUNC('day', block_time) AS day, SUM(amount_usd) AS total_volFROM dex.tradesWHERE block_time > NOW() - INTERVAL '30' dayGROUP BY 1, 2),insider_snipers AS (-- Find whales who made massive bets when the token was completely deadSELECTt.taker AS mole_wallet,t.token_bought_symbol AS target_token,t.amount_usd AS early_investment_usd,t.block_time AS snipe_timeFROM dex.trades tJOIN quiet_days_volume qdv ON t.token_bought_symbol = qdv.token AND DATE_TRUNC('day', t.block_time) = qdv.day-- The token was dead (Volume < $500k)WHERE qdv.total_vol < 500000-- But this guy bought more than $50k in a single tradeAND t.amount_usd > 50000)SELECTi.mole_wallet,i.target_token,i.early_investment_usd,i.snipe_time,-- Check the volume exactly 24 to 48 hours later (The Listing Pump)qdv2.total_vol AS listing_day_exploded_volume,'🚨 CONFIRMED INSIDER (Track this wallet!)' AS statusFROM insider_snipers iJOIN quiet_days_volume qdv2 ON i.target_token = qdv2.token-- Look at the next day's volumeWHERE qdv2.day = DATE_TRUNC('day', i.snipe_time) + INTERVAL '1' day-- Volume exploded to over $10 Million (Classic CEX listing signature)AND qdv2.total_vol > 10000000ORDER BY i.early_investment_usd DESC