0-MID2023-06-13 06:12 AM
Updated 2023-07-14
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
with act1 as (
with tab1 as (
select date_trunc('minute',BLOCK_TIMESTAMP) as time
,LIQUIDITY_PROVIDER_ADDRESS
from osmosis.core.fact_liquidity_provider_actions
where CURRENCY='uosmo')
select date_trunc('week',time) as week
,LIQUIDITY_PROVIDER_ADDRESS
,rank()over(partition by LIQUIDITY_PROVIDER_ADDRESS order by week)as time_row
from tab1)
select week
,count(LIQUIDITY_PROVIDER_ADDRESS) as "New Lpers"
,sum("New Lpers")over(order by week) as "total New Lpers"
from act1
where week>='2023-01-01'
group by 1
Run a query to Download Data