cypherCryptoPunks Sales and Traders - Volume
Updated 2022-08-31
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
35
36
›
⌄
with buyers as (select
buyer_address as address,
sum(price_usd) as buy_usd,
count(tx_hash) as buy_txs
from ethereum.core.ez_nft_sales
where nft_address = '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb'
and price > 0
and price_usd > 0
group by address
),
sellers as (select
seller_address as address,
sum(price_usd) as sell_usd,
count(tx_hash) as sell_txs
from ethereum.core.ez_nft_sales
where nft_address = '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb'
and price > 0
and price_usd > 0
group by address
),
combined as (select
b.address,
ifnull(b.buy_usd,0) + ifnull(s.sell_usd,0) as trading_volume_usd,
b.buy_txs,
s.sell_txs,
b.buy_txs + s.sell_txs as n_trades,
rank() over (order by trading_volume_usd desc) as rank_volume
from buyers b, sellers s
Run a query to Download Data