/ 1inch USD volume per token @MatteoLeibowitz
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
SQL query
1SELECT date_trunc('day', tx.block_time) AS time,
2 usd."symbol",
3 SUM("toAmount" * usd.price)/1e18 AS volume
4FROM oneinch."OneInchExchange_evt_Swapped" i
5LEFT JOIN
6 (SELECT DISTINCT symbol,
7 contract_address
8 FROM prices."usd") p ON "toToken" = p.contract_address
9LEFT JOIN ethereum.transactions tx on tx.hash = i.evt_tx_hash
10LEFT JOIN prices.usd usd ON usd.minute = date_trunc('minute', tx.block_time)
11WHERE usd.contract_address = "toToken"
12GROUP BY 1, 2
13ORDER BY 1 DESC