shadilOrca + Jupiter Volumes = total sol swapped to every token volume
Updated 2022-03-12
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
›
⌄
with tbl_orca as (Select block_timestamp::date as date, sum(s.swap_from_amount) as sol_volume, 'orca' as dex
From Solana.swaps s
Where block_timestamp::date >= '2022-01-01'
And succeeded = 'True'
and swap_program = 'orca'
And swap_from_mint = 'So11111111111111111111111111111111111111112'
And swap_from_amount != 0 AND swap_to_amount != 0
Group by date
Order by date, sol_volume DESC
),
tbl_jupiter as (Select block_timestamp::date as date, sum(s.swap_from_amount) as sol_volume, 'jupiter' as dex
From Solana.swaps s
Where block_timestamp::date >= '2022-01-01'
And succeeded = 'True'
and lower(swap_program) like '%jupiter%'
And swap_from_mint = 'So11111111111111111111111111111111111111112'
And swap_from_amount != 0 AND swap_to_amount != 0
Group by date
Order by date, sol_volume DESC
)
select * from tbl_orca
union ALL
select * from tbl_jupiter
order by date
Run a query to Download Data