articoloquintoNumber of daily swaps by DEX over time
Updated 2022-07-31
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
›
⌄
select v.date, v."Velodrome", u."Uniswap", b."Beethoven X", z."Zipswap" from(
select date_trunc('day', block_timestamp) as date,
count(*) as "Velodrome"
from optimism.core.fact_event_logs
where block_timestamp between '2022-06-30' and '2022-07-30'
and origin_to_address = '0xa132dab612db5cb9fc9ac426a0cc215a3423f9c9'
and event_name = 'Swap'
and tx_status = 'SUCCESS'
group by 1) as v
left join(
select date_trunc('day', block_timestamp) as date,
count(*) as "Uniswap"
from optimism.core.fact_event_logs
where block_timestamp between '2022-06-30' and '2022-07-30'
and origin_to_address in ('0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45', '0xe592427a0aece92de3edee1f18e0157c05861564')
and event_name = 'Swap'
and tx_status = 'SUCCESS'
group by 1) as u
on v.date = u.date
left join(
select date_trunc('day', block_timestamp) as date,
count(*) as "Beethoven X"
from optimism.core.fact_event_logs
where block_timestamp between '2022-06-30' and '2022-07-30'
and origin_to_address = '0xba12222222228d8ba445958a75a0704d566bf2c8'
and event_name = 'Swap'
and tx_status = 'SUCCESS'
group by 1) as b
on v.date = b.date
left join(
select date_trunc('day', block_timestamp) as date,
count(*) as "Zipswap"
from optimism.core.fact_event_logs
where block_timestamp between '2022-06-30' and '2022-07-30'
and origin_to_address = '0x00000000000013adddc0919642d45f5d9df09502'
and event_name = 'Swap'
Run a query to Download Data