alessio9567IXS Swap Volume Weekly % Change by chain
Updated 2024-10-11
999
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 ixs_swaps AS (
SELECT
DATE_TRUNC('week', block_timestamp) AS week,
'ethereum' AS chain,
platform AS dex,
contract_address as pool_address,
CONCAT(symbol_in, '-', symbol_out) AS pool_pair,
SUM(COALESCE(amount_in_usd, amount_out_usd)) AS weekly_volume_usd
FROM
ethereum.defi.ez_dex_swaps
WHERE
(
symbol_in = 'IXS'
OR symbol_out = 'IXS'
)
AND amount_in_usd IS NOT NULL
AND amount_out_usd IS NOT NULL
GROUP BY
week,
chain,
dex,
pool_address,
pool_pair
UNION
all
SELECT
DATE_TRUNC('week', block_timestamp) AS week,
'polygon' AS chain,
platform AS dex,
contract_address as pool_address,
CONCAT(symbol_in, '-', symbol_out) AS pool_pair,
SUM(COALESCE(amount_in_usd, amount_out_usd)) AS weekly_volume_usd
FROM
polygon.defi.ez_dex_swaps
WHERE
QueryRunArchived: QueryRun has been archived