KaskoazulSOL Swaps
Updated 2022-02-21
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
›
⌄
WITH SWAPPEDAWAY AS (
select
block_timestamp::date as date,
sum(swap_from_amount) as SwappedAwaySOL
From solana.swaps
Where block_timestamp::date >= '2022-01-01'
AND succeeded = 'TRUE'
AND swap_program = 'jupiter aggregator v2'
AND swap_from_mint = 'So11111111111111111111111111111111111111112' -- wrapped SOL
Group by date
),
SWAPPEDTO AS (
select
block_timestamp::date as date,
sum(swap_to_amount) as SwappedToSOL
From solana.swaps
Where block_timestamp::date >= '2022-01-01'
AND succeeded = 'TRUE'
AND swap_program = 'jupiter aggregator v2'
AND swap_to_mint = 'So11111111111111111111111111111111111111112' -- wrapped SOL
Group by date
)
SELECT
a.date,
a.SwappedAwaySOL,
t.SwappedToSOL
FROM
SWAPPEDAWAY a
INNER JOIN SWAPPEDTO t
ON a.date = t.date
Run a query to Download Data