Skip to content
Dune Analytics

@hagaetc / Weekly DEX volume

Weekly DEX volume

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query results

Loading
 

SQL query

1SELECT  project,                        
2        date_trunc('week', block_time),
3        SUM(usd_amount) as usd_volume                                                                              
4FROM dex."trades" t                                                                             
5WHERE block_time > now() - interval '24 weeks'
6--AND block_time < date_trunc('week', Now()) -- Add this line to see stats from current week
7AND category = 'DEX'
8GROUP BY 1, 2
9; 

Result visualizations

Weekly DEX volume

Loading