Afonso_DiazToken Pairs
Updated 2025-01-19
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
main as (
select
tx_id,
block_timestamp,
nvl(swap_from_amount_usd, swap_to_amount_usd) as amount_usd,
case
when swap_program ilike 'meteora%' then 'Meteora'
when swap_program ilike 'phoenix%' then 'Phoenix'
when swap_program ilike 'raydium%' then 'Raydium'
when swap_program ilike 'orca%' then 'Orca'
when swap_program ilike 'jupiter%' then 'Jupiter'
end as platform,
swap_from_symbol as symbol_in,
swap_to_symbol as symbol_out,
swapper
from
solana.defi.ez_dex_swaps
where
'6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN' in (swap_from_mint, swap_to_mint)
and block_timestamp >= '2025-01-15'
)
select
symbol_in || ' -> ' || symbol_out as token_pair,
count(distinct tx_id) as swaps,
count(distinct swapper) as swappers,
sum(amount_usd) as volume_usd,
avg(amount_usd) as average_amount_usd,
median(amount_usd) as median_amount_usd
from
main
where
token_pair is not null
group by 1
QueryRunArchived: QueryRun has been archived