datavortexTop traded markets
Updated 2024-12-20
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 market_data AS (
SELECT
symbol,
COUNT(DISTINCT digest) AS total_trades,
SUM(CASE WHEN is_taker = FALSE THEN amount_usd ELSE 0 END) AS total_volume,
COUNT(DISTINCT trader) AS total_traders
FROM
arbitrum.vertex.ez_perp_trades
WHERE
trader != '0x0000000000000000000000000000000000000000'
AND subaccount != '0x0000000000000000000000000000000000000000000000000000000000000001'
GROUP BY
symbol
),
market_rankings AS (
SELECT
symbol,
total_trades,
total_volume,
total_traders,
RANK() OVER (ORDER BY total_trades DESC) AS trade_rank,
RANK() OVER (ORDER BY total_volume DESC) AS volume_rank,
RANK() OVER (ORDER BY total_traders DESC) AS trader_rank
FROM
market_data
)
SELECT
symbol,
total_trades,
total_volume,
total_traders,
trade_rank,
volume_rank,
trader_rank
FROM
QueryRunArchived: QueryRun has been archived