Skip to content
Dune Analytics

@hagaetc / Total DEX USD volume - 7 days

CounterTotal DEX USD volume - 7 days

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

1WITH prices AS (
2   (
3   SELECT minute, contract_address, symbol, price FROM prices.usd WHERE minute > now() - interval '7 days'
4    )
5),
6
7tokens AS(
8
9SELECT * FROM erc20.tokens 
10
11)
12
13SELECT SUM(volume) FROM  
14
15(
16(SELECT 'Uniswap' AS "Project",
17       SUM(eth/1e18 * p.price) AS volume
18FROM (
19        (SELECT evt_block_time,
20                eth_sold AS eth
21         FROM uniswap."Exchange_evt_TokenPurchase" WHERE evt_block_time > now() - interval '7 days')
22      UNION ALL
23        (SELECT evt_block_time,
24                eth_bought AS eth
25         FROM uniswap."Exchange_evt_EthPurchase" WHERE evt_block_time > now() - interval '7 days')) ether...

SQL query results

Loading