Specterokx dex platform trend
Updated 2025-03-10Copy 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
›
⌄
WITH okx_aggregator_swaps AS (
SELECT
block_timestamp,
tx_hash,
origin_from_address AS swapper,
symbol_in,
symbol_out,
platform,
COALESCE(amount_in_usd, amount_out_usd) AS swap_amount_usd
FROM avalanche.defi.ez_dex_swaps
WHERE origin_to_address = '0x1dac23e41fc8ce857e86fd8c1ae5b6121c67d96d'
AND block_timestamp >= '2024-01-01'
AND swap_amount_usd is not null
)
SELECT DATE_TRUNC('Month', Block_timestamp) AS swap_date,
platform,
COUNT(DISTINCT tx_hash) AS tx_count,
COUNT(DISTINCT swapper) AS unique_swappers,
SUM(swap_amount_usd) AS volume_usd,
FROM okx_aggregator_swaps
GROUP BY platform, swap_date
order by swap_date desc
QueryRunArchived: QueryRun has been archived