Skip to content
Dune Analytics

@rchen8 / Total Kyber users over time

Total Kyber users over time


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 date, sum(users) OVER (
2                              ORDER BY date ASC ROWS BETWEEN unbounded preceding AND CURRENT ROW) AS total_users
4  (SELECT date, count(USER) AS users
5   FROM
6     (SELECT min(date) AS date,
7             account AS USER
8      FROM
9        (SELECT date_trunc('day', min(block_time)) AS date,
10                trader_a AS account
11         FROM dex.trades
12         WHERE project = 'Kyber'
13         GROUP BY 2
14         UNION SELECT date_trunc('day', min(block_time)) AS date,
15                      trader_b AS account
16         FROM dex.trades
17         WHERE project = 'Kyber'
18         GROUP BY 2) AS a
19      GROUP BY 2) AS b
20   GROUP BY 1
21   ORDER BY 1) AS c

SQL query results