alessio9567IXS Swap Volume by Pool
    Updated 22 hours ago
    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
    and block_timestamp BETWEEN '{{start_day}}'
    AND '{{end_day}}'
    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
    Last run: about 22 hours agoAuto-refreshes every 24 hours
    WEEK
    POOL_PAIR
    SUM(WEEKLY_VOLUME_USD)
    1
    2024-07-15 00:00:00.000IXS-WETH_ethereum2190419.04
    2
    2024-08-12 00:00:00.000IXS-WETH_ethereum1079634.19
    3
    2024-10-07 00:00:00.000other47.64
    4
    2024-05-06 00:00:00.000other147463.58
    5
    2024-12-23 00:00:00.000other23075.55
    6
    2025-03-31 00:00:00.000other15882.51
    7
    2024-09-02 00:00:00.000other25.69
    8
    2024-11-04 00:00:00.000IXS-WMATIC_polygon91617.75
    9
    2024-12-30 00:00:00.000other44662.79
    10
    2025-01-13 00:00:00.000IXS-WETH_base142281.03
    11
    2024-08-26 00:00:00.000IXS-WETH_ethereum2219922.11
    12
    2025-01-20 00:00:00.000other101079.06
    13
    2025-05-19 00:00:00.000other29307.99
    14
    2024-01-08 00:00:00.000IXS-WMATIC_polygon200518.06
    15
    2025-03-17 00:00:00.000other22218.07
    16
    2025-05-05 00:00:00.000IXS-WETH_base45489.2
    17
    2024-06-17 00:00:00.000IXS-WETH_ethereum4361632.17
    18
    2024-11-25 00:00:00.000IXS-WMATIC_polygon143931.94
    19
    2024-10-28 00:00:00.000IXS-WETH_ethereum1506607.71
    20
    2024-01-29 00:00:00.000IXS-WMATIC_polygon71563.4
    ...
    246
    13KB
    137s