yasmin-n-d-r-hUntitled Query
Updated 2022-08-15
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
›
⌄
select
block_timestamp :: date as date,
lp_action,
count (distinct tx_hash) as TX_Count,
count (distinct origin_from_address) as Users_Count,
sum (token0_amount_usd) as Volume,
sum (Users_Count) over (
partition by lp_action
order by
date
) as cum_users,
sum (TX_Count) over (
partition by lp_action
order by
date
) as cum_tx,
sum (
sum (token0_amount_usd)
) over (
partition by lp_action
order by
date
) as Cumulative_volume_lp
from
optimism.velodrome.ez_lp_actions
group by
1,
2
order by
1
Run a query to Download Data