hbd19946. Top Origin Currencies
Updated 2023-02-06Copy Reference Fork
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
›
⌄
with tab1 as (with main as (select a.*, PROJECT_NAME as from_symbol
from osmosis.core.fact_swaps a
FULL join osmosis.core.dim_labels b on a.from_currency=b.address
where to_currency = 'ibc/6F62F01D913E3FFE472A38C78235B8F021B511BC6596ADFF02615C8F83D3B373'
and TX_SUCCEEDED = 'TRUE')
select
BLOCK_TIMESTAMP,
TX_ID,
TRADER,
FROM_SYMBOL,
FROM_AMOUNT/POW(10,FROM_DECIMAL) as FROM_AMOUNT,
(TO_AMOUNT/1e18) as TO_XAVAX_AMOUNT,
POOL_IDS
from main)
select
FROM_SYMBOL as "Currency Symbol",
count(*) as "Number of Swaps",
sum(from_amount) as total
from tab1
where from_amount is not null
group by 1
order by 2 desc
limit 10
Run a query to Download Data