Query editor
-- THE BOOK · BIN MOVEMENT · activity, not a profit signal-- Mode: materialized. Generated locally; execution on Dune requires credits.WITH swaps AS (SELECT * FROM dune.idonotsayblahblahblah.result_the_book_swaps),panel AS (SELECT pool, sum(exchange_count) AS exchange_count,max(max_bins_crossed) AS max_bins_crossed,max(source_latest_event_at) AS latest_event_at,max_by(latest_tx, source_latest_event_at) AS receipt_tx,min(materialized_at) AS oldest_materialized_atFROM swaps GROUP BY pool ORDER BY max_bins_crossed DESC LIMIT 100)SELECT * FROM panel;