User283942Overview of Top Addresses copy
Updated 2024-05-15
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
›
⌄
-- forked from hess / Overview of Top Addresses @ https://flipsidecrypto.xyz/hess/q/Vr96TR3XRPpW/overview-of-top-addresses
with trade as ( select block_timestamp,
tx_hash,
trader,
symbol,
amount_usd
from blast.blitz.ez_perp_trades
)
,
final as ( select trader,
sum(amount_usd) as volume,
avg(amount_usd) as avg_volume,
median(amount_usd) as medaian_volume,
min(amount_usd) as min_volume
from trade
group by 1)
,
trades as ( select block_timestamp,
tx_hash,
trader,
symbol,
amount_usd
from blast.blitz.ez_perp_trades
UNION
select block_timestamp,
tx_hash,
trader,
symbol,
amount_usd
from arbitrum.vertex.ez_spot_trades
)
,
final_trades as ( select trader,
count(DISTINCT block_timestamp::date) as active_days,
count(DISTINCT tx_hash) as trades,
QueryRunArchived: QueryRun has been archived