superfly10 Top axlUSDC origin
Updated 2022-12-26
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
›
⌄
with t1 as
(select
sum(case when to_CURRENCY='ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4' then to_AMOUNT/1e6 else null end) as inbflow,
sum(case when FROM_CURRENCY='ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4' then FROM_AMOUNT/1e6 else null end) as outflow,
TRADER
from
terra.core.ez_swaps
group by TRADER),
t2 as
(select
case when inbflow is null then 0 else inbflow end as infloww,
case when outflow is null then 0 else outflow end as outfloww, *
from t1
)
select sum(infloww-outfloww) as volume , TRADER from t2
group by 2
order by 1 asc
limit 10
Run a query to Download Data