hessBoth or one?
Updated 2024-04-30
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 blitz as ( select block_timestamp,
'Blitz' as platform,
tx_hash,
trader,
symbol,
case when is_taker = 'true' then amount_usd else 0 end as amount
from blast.blitz.ez_perp_trades
)
,
vertex as (select block_timestamp,
'Vertex' as platform,
tx_hash,
trader,
symbol,
case when is_taker = 'true' then amount_usd else 0 end as amount
from arbitrum.vertex.ez_perp_trades
UNION all
select block_timestamp,
'Vertex' as platform,
tx_hash,
trader,
symbol,
case when is_taker = 'true' then amount_usd else 0 end as amount
from arbitrum.vertex.ez_spot_trades
)
,
both_users as ( select DISTINCT trader
from blitz
where trader in (select trader from vertex))
,
tblitz as ( select block_timestamp,
'Blitz' as platform,
tx_hash,
trader,
symbol,
case when is_taker = 'true' then amount_usd else 0 end as amount
QueryRunArchived: QueryRun has been archived