jackguyNFT-token-dash-3 copy copy copy copy
    Updated 2024-01-30
    -- forked from NFT-token-dash-3 copy copy copy @ https://flipsidecrypto.xyz/edit/queries/548590a5-d6ee-46db-ba17-ae3aef5bd727

    -- forked from NFT-token-dash-3 copy copy @ https://flipsidecrypto.xyz/edit/queries/04875cc6-7874-4dbc-ae10-297b93db17ec

    -- forked from NFT-token-dash-3 copy @ https://flipsidecrypto.xyz/edit/queries/7bf481c7-419e-49e3-a865-0f24860579ca

    -- forked from NFT-token-dash-3 @ https://flipsidecrypto.xyz/edit/queries/e16b1af8-2991-4d67-9af6-eef86b3ba6df

    with tab1 as (
    SELECT
    date_trunc('day', block_timestamp) as day2,
    sum(
    case when case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end > 0 then
    case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end
    else 0 end
    ) as sell_volume_usd,
    sum(
    case when case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end < 0 then
    case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end
    else 0 end * -1
    ) as buy_volume_usd,
    sum(
    case when case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end > 0 then
    1
    else 0 end
    ) as sell_events,
    sum(
    case when case when TOKEN1_SYMBOL LIKE 'WETH' then AMOUNT1_USD else AMOUNT0_USD end < 0 then
    1
    else 0 end
    ) as buy_events
    FROM ethereum.uniswapv3.ez_swaps
    where pool_address IN (
    lower('0x5ee84bed805df225ee23aec4160cc0bfcf1bd892'),
    Last run: over 1 year agoAuto-refreshes every 6 hours
    DAY2
    SELL_VOLUME_USD
    BUY_VOLUME_USD
    SELL_EVENTS
    BUY_EVENTS
    1
    2024-01-20 00:00:00.00048.29822.1712
    2
    2024-01-19 00:00:00.00001770.6102
    3
    2024-01-25 00:00:00.000345.97010
    4
    2024-01-22 00:00:00.0001901.14748.2141
    5
    2024-01-18 00:00:00.0001993.28020
    6
    2024-01-27 00:00:00.000550.93654.822
    7
    2024-01-29 00:00:00.000733.19673.9143
    8
    2024-01-28 00:00:00.000210.54010
    9
    2024-01-21 00:00:00.000783.83320.1721
    10
    2024-01-17 00:00:00.000727.181625.5912
    11
    2024-01-23 00:00:00.000935.96788.4122
    12
    2024-01-24 00:00:00.0000825.702
    13
    2024-01-26 00:00:00.000417.481603.5615
    14
    2024-01-15 00:00:00.000483.1010
    14
    616B
    3s