Skip to content
Dune Analytics

@hagaetc / Example: Uniswap USD volume 🦄

VolumeExample: Uniswap USD 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

1SELECT
2    date_trunc('day', block_time) AS day,
3    SUM(usd_value_of_eth) AS usd_volume
4FROM
5    (
6       SELECT block_time, usd_value_of_eth FROM uniswap."view_eth_purchase"
7           UNION ALL
8       SELECT block_time, usd_value_of_eth FROM uniswap."view_token_purchase"
9    ) AS eth_usd
10WHERE block_time > now() - interval '7 days'
11GROUP BY 1
12ORDER BY 1;

SQL query results

Loading