StangFASTTop 10 tokens bought by new users in 2023
Updated 2023-08-03Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from 02 - new users' activity token in @ https://flipsidecrypto.xyz/edit/queries/8e87c43f-e552-4b41-8c2e-30169a8062ae
-- forked from 02 - new users' activity @ https://flipsidecrypto.xyz/edit/queries/a21e20ca-cd8b-4d04-b52e-6ea02f087ce3
-- forked from 01 - new users monthly @ https://flipsidecrypto.xyz/edit/queries/8ceba136-b558-46d8-8598-abf79e95ffab
with
new_users AS
(
SELECT
min( a.block_timestamp ) AS min_date
, a.origin_from_address AS new_users
FROM
ethereum.core.ez_dex_swaps a
WHERE
a.platform LIKE 'uniswap%'
GROUP BY 2
ORDER BY 1 DESC
)
,
final AS
(
SELECT
a.symbol_in AS "token"
, count( DISTINCT a.origin_from_address ) AS "total users"
, count( DISTINCT a.tx_hash ) AS "total transactions"
, sum( a.amount_in_usd ) AS "total usd volume"
, "total transactions" / "total users" AS "transactions per user"
, "total usd volume" / "total users" AS "usd volume per user"
FROM
ethereum.core.ez_dex_swaps a
INNER JOIN
new_users b
ON a.origin_from_address = b.new_users
Run a query to Download Data