hesssteep-teal
Updated 2024-09-17
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 base as ( select trunc(block_timestamp,'hour') as hourly,
'Avalanche' as chain,
tx_hash,
origin_from_address,
pool_name,
amount_in_usd,
amount_out_usd,
AMOUNT_IN,
AMOUNT_Out,
TOKEN_IN,
TOKEN_out,
symbol_in,
symbol_out
from avalanche.defi.ez_dex_swaps
where platform in ('trader-joe-v2','trader-joe-v1')
and block_timestamp::date >= '2023-01-01'
UNION
select trunc(block_timestamp,'hour') as hourly,
'Arbitrum' as chain,
tx_hash,
origin_from_address,
pool_name,
amount_in_usd,
amount_out_usd,
AMOUNT_IN,
AMOUNT_Out,
TOKEN_IN,
TOKEN_out,
symbol_in,
symbol_out
from arbitrum.defi.ez_dex_swaps
where platform ilike '%trader%'
and block_timestamp::date >= '2023-01-01'
UNION
select trunc(block_timestamp,'hour') as hourly,
'Arbitrum' as chain,
QueryRunArchived: QueryRun has been archived