Skip to content
Dune Analytics

@dgog / New Query

Total dYdX users over timeNew Query

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 date, sum(users) OVER (
2                              ORDER BY date ASC ROWS BETWEEN unbounded preceding AND CURRENT ROW) AS total_users
3FROM
4  (SELECT date, count(USER) AS users
5   FROM
6     (SELECT min(date) AS date,
7             accountOwner AS USER
8      FROM
9        (SELECT date_trunc('day', evt_block_time) AS date,
10                maker AS accountOwner
11         FROM dydx_perpetual."PerpetualV1_evt_LogTrade"
12         UNION SELECT date_trunc('day', evt_block_time) AS date,
13                      taker AS accountOwner
14         FROM dydx_perpetual."PerpetualV1_evt_LogTrade"
15         UNION SELECT date_trunc('day', evt_block_time) AS date,
16                      "accountOwner" AS accountOwner
17         FROM dydx."SoloMargin_evt_LogDeposit"
18         UNION SELECT date_trunc('day', evt_block_time) AS date,
19                      "takerAccountOwner"
20         FROM dydx."SoloMargin_evt_LogTrade"
21         UNION SELECT date_trunc('day', evt_block_time) AS date,
22                      "makerAccountOwner"
23         FROM dydx."SoloMargin_evt_LogTrade"
24         UNION SELECT date_trunc('day', block_time),
25                      "from"...