Skip to content
Dune Analytics

@devinwalsh / .Kyber Daily Volume

Kyber Daily Volume.Kyber Daily 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 
2    date_trunc('day', evt_block_time) AS date,
3    sum( total."ethWeiValue"*(count_reserve_1+count_reserve_2)/1e18) AS daily_eth_volume
4FROM ( 
5SELECT "ethWeiValue",
6          (CASE
7               WHEN reserve1 IN ('\x2295fc6BC32cD12fdBb852cFf4014cEAc6d79C10',
8                                 '\x57f8160e1c59D16C01BbE181fD94db4E56b60495',
9                                 '\x0000000000000000000000000000000000000000') THEN 0
10               ELSE 1
11           END) AS count_reserve_1,
12          CASE
13              WHEN reserve2 IN ('\x2295fc6BC32cD12fdBb852cFf4014cEAc6d79C10',
14                                '\x57f8160e1c59D16C01BbE181fD94db4E56b60495',
15                                '\x0000000000000000000000000000000000000000') THEN 0
16              ELSE 1
17          END AS count_reserve_2,
18          evt_block_time
19   FROM kyber."Network_evt_KyberTrade"
20  ) total 
21  GROUP BY date_trunc('day', evt_block_time)