boomer77swaps KRT
Updated 2021-09-15
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
with krt as (select address, balance as KRT
from terra.daily_balances
where currency = 'KRT' and date = CURRENT_DATE - 1
group by 1,2
order by balance desc
limit 10),
swaps as (select trader, concat(token_0_currency,'-',token_1_currency) as swap_pair, sum(token_0_amount_usd) as Pair1, sum(token_1_amount_usd) as Pair2
from terra.swaps
where trader in (select address
from krt)
and tx_status = 'SUCCEEDED'
group by 1,2)
select a.address, a.KRT, b.swap_pair, b.pair1, b.pair2
from krt a
join swaps b on a.address = b.trader
where b.swap_pair is not null
Run a query to Download Data