Query editor
-- VLAD METHOD | migrated 2026-09-29 | reference query_8838081 v18-- 1. Exclude either leg on query_8854526 (API liquidity < $5,000 + manual list/overrides).-- This is a current token-level exclusion list, NOT a historical pool-day whitelist.-- Unchecked tokens remain included, as in Vlad's query.-- 2. Exclude (chain, Tuesday-start UTC week, project, version, token_pair) with < 5 traders.-- Exactly 5 passes. Apply the SAME weekly rule before day/week/month aggregation.-- 3. Retain Vlad's explicit bad transaction/wallet/pair and protocol exclusions.-- 4. BNB: recover NULL USD only when BOTH tokens are confirmed >= $5,000;-- daily implied price needs >= $20,000 and >= 10 leg trade counts, as in Vlad.-- 5. PumpSwap/Meteora protocol & chain totals use Vlad's daily external values;-- missing daily values fall back to filtered Dune. Pair detail stays filtered Dune.-- Old query_6582607 pool filter and experimental WAU/DAU > 50 rules are not used.-- Canonical daily totals for all CP volume views; 6-month history. Original non-core chains remain in Others.WITH stables AS (SELECT*FROM (VALUES(0x55d398326f99059ff775485246999027b3197955),(0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d),(0x8d0d000ee44948fc98c9b98a4fa4921476f08b0d),(0xe9e7cea3dedca5984780bafc599bd69add087d56)) AS t(addr)), zero_liquidity_tokens AS (SELECTchain,FROM_HEX(REPLACE(token_key, '0x', '')) AS token_addressFROM query_8854526WHEREchain <> 'solana'), zero_liquidity_bnb AS (SELECTtoken_addressFROM zero_liquidity_tokensWHEREchain = 'bnb'), zero_liquidity_solana AS (SELECTtoken_key AS token_addressFROM query_8854526WHEREchain = 'solana'), confirmed_real_bnb AS (SELECT DISTINCTFROM_HEX(REPLACE(LOWER(CAST(token_address AS VARCHAR)), '0x', '')) AS token_addressFROM dune.bnbchain.dataset_token_liquidity_checkWHEREchain = 'bnb' AND liquidity_usd >= 5000), leg_prices_bnb AS (SELECTblock_date,token_bought_address AS token_address,SUM(CAST(amount_usd AS DOUBLE)) AS usd,SUM(token_bought_amount) AS qty,COUNT(DISTINCT tx_hash) AS n_tradesFROM dex.tradesWHEREblockchain = 'bnb'AND NOT amount_usd IS NULLAND block_date > DATE_TRUNC('DAY', CURRENT_TIMESTAMP) - INTERVAL '6' MONTHGROUP BY1,