mansastNEAR - wNEAR swaps volume
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
28
›
⌄
with dep as(
select
date_trunc('month',block_timestamp) as month,
sum(AMOUNT_OUT) as stNear_from_wNEAR_vol
from near.core.ez_dex_swaps
where TOKEN_OUT = 'STNEAR'
and TOKEN_IN = 'wNEAR'
group by 1
),
withdrawn as(
SELECT
date_trunc('month',block_timestamp) as month,
sum(AMOUNT_IN) as wNEAR_from_stNEAR_vol
from near.core.ez_dex_swaps
where TOKEN_IN = 'STNEAR'
and TOKEN_OUT = 'wNEAR'
group by 1
)
select
a.month,
a.stNear_from_wNEAR_vol,
b.wNEAR_from_stNEAR_vol
from dep a inner join withdrawn b
where a.month=b.month
Run a query to Download Data