SWAPS | SWAPPERS | PLATFORMS | VOLUME_USD | AVERAGE_AMOUNT_USD | DAILY_AVERAGE_SWAPS | DAILY_AVERAGE_SWAPPERS | |
---|---|---|---|---|---|---|---|
1 | 56805296 | 2093210 | 11 | 17914513198.1093 | 196.90177544 | 58441.662551 | 2153.50823 |
Afonso_DiazGeneral
Updated 2 days ago
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
›
⌄
with
main as (
select
tx_hash,
block_timestamp,
swapper,
platform,
case
when amount_in_usd > 0 and amount_out_usd > 0 then least(amount_in_usd, amount_out_usd)
when amount_in_usd > 0 then amount_in_usd
when amount_out_usd > 0 then amount_out_usd
end as amount_usd,
symbol_in,
symbol_out,
token_in,
token_out
from
aptos.defi.ez_dex_swaps
where
amount_usd < 1e7
and amount_usd > 0
)
select
count(distinct tx_hash) as swaps,
count(distinct swapper) as swappers,
count(distinct platform) as platforms,
sum(amount_usd) as volume_usd,
avg(amount_usd) as average_amount_usd,
swaps / count(distinct block_timestamp::date) as daily_average_swaps,
swappers / count(distinct block_timestamp::date) as daily_average_swappers
from main
Last run: 1 day ago
1
77B
8s