datavortexVolume Per Trader
Updated 2024-11-05
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
›
⌄
WITH EthereumUserVolume AS (
SELECT
origin_from_address AS user,
SUM(amount_in_usd) AS total_volume
FROM
ethereum.defi.ez_dex_swaps
WHERE
block_timestamp BETWEEN '2024-01-01' AND '2024-10-31'
GROUP BY
origin_from_address
),
SolanaUserVolume AS (
SELECT
swapper AS user,
SUM(swap_from_amount_usd) AS total_volume
FROM
solana.defi.ez_dex_swaps
WHERE
block_timestamp BETWEEN '2024-01-01' AND '2024-10-31'
GROUP BY
swapper
)
SELECT
'Ethereum' AS Platform,
AVG(total_volume) AS AvgVolumePerUser
FROM
EthereumUserVolume
UNION ALL
SELECT
'Solana' AS Platform,
AVG(total_volume) AS AvgVolumePerUser
FROM
SolanaUserVolume;
QueryRunArchived: QueryRun has been archived