Query editor
-- 2026-09-30: Jupiter Lend excluded from BOTH sides of the ratio.-- dex_solana.trades now labels Jupiter Lend as project 'jupiter_lend'. It is-- lending, not a DEX, so it is dropped from the aggregator-routed numerator-- (base) and from the spot DEX denominator (dex_volume). Same exclusion as-- the DeFi monthly deck's DEX volume, DEX TVL and take rate.WITH base AS (-- normalize to DATE for safe UNIONsSELECTCAST(date_trunc('month', block_time) AS DATE) AS month,trade_source,SUM(COALESCE(amount_usd, 0)) AS amount_usdFROM dex_solana.tradesWHERE block_time >= TIMESTAMP '2024-01-01'AND tx_id NOT IN (SELECT tx_id FROM dune.syndica.result_orca_mrgn_weird_swaps_to_exclude)AND trade_source IN ('JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4','6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma',-- OKX's SECOND router program, added 2026-09-10. Verified as OKX from-- Syndica query 5633841 v40. Omitting it counted OKX's flow as nobody's-- and inflated every other platform's share of the peer set: on August-- 2026 data Jupiter read 76.4% without it against 64.7% with it.'proVF4pMXVaYqmy4NjniPh4pqKNfMmsihgd4wdkCX3u','DF1ow4tspfHX9JwWJsAb9epbkA8hmpSEAtxXy1V27QBH','T1TANpTeScyeqVzzgNViGDNrkQ6qHz9KrSBS4aNXvGT','JUP4Fb2cqiRUcaTHdrPC8h2gNsA2ETXiPDD33WcGuJB')AND initcap(project) <> 'Pumpswap'AND project <> 'jupiter_lend'GROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_pumpfun_volume_by_aggregatorsGROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_solfi_volume_by_aggregatorsGROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_obric_volume_by_aggregatorsGROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_zero_fi_volume_by_aggregatorsGROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_tessera_v_volume_by_aggregatorsGROUP BY 1,2UNION ALLSELECT CAST(month AS DATE), outer_executing_account, SUM(volume_usd)FROM dune.syndica.result_goon_fi_volume_by_aggregatorsGROUP BY 1,2