mansaDEP VS WITHD stNEAR
Updated 2022-10-05
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
›
⌄
with dep as(
select
date_trunc('month',block_timestamp) as month,
sum(AMOUNT_OUT) as in_vol
from near.core.ez_dex_swaps
where TOKEN_OUT = 'STNEAR'
group by 1
),
withdrawn as(
SELECT
date_trunc('month',block_timestamp) as month,
sum(AMOUNT_IN) as out_vol
from near.core.ez_dex_swaps
where TOKEN_IN = 'STNEAR'
group by 1
)
select
a.month,
a.in_vol,
b.out_vol
from dep a inner join withdrawn b
where a.month=b.month
Run a query to Download Data