talebimorteza_72Untitled Query
Updated 2022-03-16
99
1
2
3
4
5
6
7
8
9
10
11
12
›
⌄
select s.BLOCK_TIMESTAMP::date date,
count(case when t.succeeded = True then 1 else null end) as N_succeed_trx, -- Number of seccess swap
count(t.succeeded) as N_trx, -- Total Number of Transactions
N_succeed_trx/N_trx as Swap_Succeed_Rate -- Succeed Rate
from solana.swaps s
join solana.transactions t
on s.tx_id = t.tx_id
where swap_from_mint = 'So11111111111111111111111111111111111111112'
and swap_to_mint <> 'So11111111111111111111111111111111111111112'
and s.block_timestamp::date >= '2022-01-01'
and swap_program like '%jupiter%'
group by date
Run a query to Download Data