thea[Blur Mega] Top Traders Based on Sales Counts
Updated 2022-12-29Copy 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
27
28
29
30
31
32
33
34
›
⌄
⌄
/*
- Top Traders Based on Sales Counts
*/
with trader as (
select wallet,
count(distinct tx_hash) as sales_count,
sum(price_usd) as sales_volume
from (
select -- to_date(date_trunc('day', block_timestamp)) as block_date,
buyer_address as wallet,
tx_hash,
price_usd
from ethereum.core.ez_nft_sales
where platform_name = 'blur'
union all
select -- to_date(date_trunc('day', block_timestamp)) as block_date,
seller_address as wallet,
tx_hash,
price_usd
from ethereum.core.ez_nft_sales
where platform_name = 'blur'
)
group by 1
)
select wallet,
sales_count
from trader
order by sales_count desc
limit 15
Run a query to Download Data