Query editor
-- Dune-only all-history stETH and eETH ARM trading totals through 2026-07-24.WITH arms(asset, arm_address, token_address, start_date) AS (VALUES('stETH', 0x85b78aca6deae198fbf201c82daf6ca21942acc6, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84, DATE '2024-10-17'),('eETH', 0xfb0a3cf9b019bfd8827443d131b235b3e0fc58d2, 0x35fa164735182de50811e8e2e824cfb9b6118ac2, DATE '2025-10-30')),counterparts(token_address) AS (VALUES(0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2),(0x0000000000000000000000000000000000000000))SELECTa.asset,a.start_date AS configured_start_date,t.project,t.version,t.project_contract_address,MIN(t.block_time) AS first_indexed_trade,MAX(t.block_time) AS last_indexed_trade,COUNT(*) AS trade_rows,COUNT(t.amount_usd) AS priced_rows,COUNT(*) FILTER (WHERE t.amount_usd IS NULL) AS unpriced_rows,COUNT(DISTINCT t.tx_hash) AS tx_count,SUM(t.amount_usd) AS volume_usd,SUM(CASEWHEN t.token_sold_address = a.token_address THEN t.token_sold_amountELSE t.token_bought_amountEND) AS base_asset_volumeFROM dex.trades tJOIN arms aON t.project_contract_address = a.arm_addressWHERE t.blockchain = 'ethereum'AND t.block_date >= a.start_dateAND t.block_date <= DATE '2026-07-29'AND t.project = 'origin_arm'AND ((t.token_sold_address = a.token_address AND t.token_bought_address IN (SELECT token_address FROM counterparts))OR(t.token_bought_address = a.token_address AND t.token_sold_address IN (SELECT token_address FROM counterparts)))GROUP BY 1,2,3,4,5ORDER BY 1