kiacryptojupiter swap
Updated 2022-02-19Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
with from_sol AS(
select block_timestamp::date as date1, sum(swap_from_amount) as SOL_swapped_to_other_tokens
From solana.swaps
Where block_timestamp::date >= '2022-01-01'
And swap_from_mint = 'So11111111111111111111111111111111111111112'
Group by date1), to_sol AS(
select block_timestamp::date as date2, sum(swap_to_amount) as other_tokens_swapped_to_sol
From solana.swaps
Where block_timestamp::date >= '2022-01-01'
And swap_to_mint = 'So11111111111111111111111111111111111111112'
Group by date2
)
SELECT date1, SOL_swapped_to_other_tokens, other_tokens_swapped_to_sol
FROM from_sol, to_sol
WHERE date1 = date2
Run a query to Download Data