alitaslimiArbitrum Swap Transactions
Updated 2023-08-16
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
›
⌄
with
swaps as (
select
block_number,
block_timestamp,
tx_hash,
origin_from_address as swapper,
platform,
contract_address,
pool_name,
token_in,
token_out,
symbol_in,
symbol_out,
amount_in,
amount_out,
amount_in_usd,
amount_out_usd
from
arbitrum.core.ez_dex_swaps
)
select
*
-- block_timestamp::date as "Date",
-- platform as "DEX",
-- count(distinct tx_hash) as "Swaps",
-- count(distinct origin_from_address) as "Swappers",
-- sum(amount_out_usd) as "Volume"
from
swaps
where
block_timestamp::date between '2023-07-01' and (current_date - 2)
and amount_out_usd is null
-- group by
-- "Date",
-- "DEX"