Skip to content
Dune Analytics

@k06a / 1inch.exchange Total Volume

Total USD Volume1inch.exchange Total 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    SUM(GREATEST(from_usd, to_usd)) AS volume
3FROM (
4    SELECT to_token, from_token, to_amount, from_amount, tx_hash, block_time, from_usd, to_usd FROM oneinch.view_swaps UNION ALL
5    SELECT to_token, from_token, to_amount, from_amount, tx_hash, block_time, from_usd, to_usd FROM onesplit.view_swaps
6    WHERE tx_hash NOT IN (SELECT tx_hash FROM oneinch.view_swaps) UNION ALL
7    SELECT to_token, from_token, to_amount, from_amount, tx_hash, block_time, from_usd, to_usd FROM oneproto.view_swaps
8    WHERE tx_hash NOT IN (SELECT tx_hash FROM oneinch.view_swaps)
9) oi
10
11-- SELECT MAX(time) FROM ethereum.blocks
12

SQL query results

Loading