drone-mostafaCumulative 2023
Updated 2023-05-03
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
›
⌄
SELECT
date_trunc ('week',BLOCK_TIMESTAMP) as Date,
PLATFORM as DEX,
count (DISTINCT TX_HASH) as TXN,
count (DISTINCT ORIGIN_FROM_ADDRESS) as Users,
sum (AMOUNT_IN_USD) as USD,
sum (TXN) over (partition by DEX order by date ) as cum_TXN,
sum (Users) over (partition by DEX order by date ) as cum_Users,
sum (USD) over (partition by DEX order by date ) as cum_USD
FROM avalanche.core.ez_dex_swaps
WHERE BLOCK_TIMESTAMP >= '2023-01-01'
GROUP BY 1,2
--POOL_NAME USDC-WAVAX
Run a query to Download Data