Specterdex trend
    Updated 2025-02-22
    with dexbtc AS (
    SELECT block_timestamp, tx_hash, 'Ethereum' AS Chain,
    pool_name,
    token_in, token_out,
    event_name,
    amount_in_usd,
    sender, platform
    FROM ethereum.defi.ez_dex_swaps
    WHERE (token_in = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf'
    OR token_out = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf')

    UNION ALL

    SELECT block_timestamp, tx_hash, 'Base' AS Chain,
    pool_name,
    token_in, token_out,
    event_name,
    amount_in_usd,
    sender, platform
    FROM base.defi.ez_dex_swaps
    WHERE (token_in = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf'
    OR token_out = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf')
    )
    SELECT DATE_TRUNC('day', block_timestamp) AS date,
    Chain,
    SUM(CASE WHEN token_in = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf' THEN amount_in_usd ELSE 0 END) as buy_volume,
    SUM(CASE WHEN token_out = '0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf' THEN -amount_in_usd ELSE 0 END) as sell_volume,
    SUM(amount_in_usd) as total_volume,
    FROM dexbtc
    GROUP BY Chain, date
    ORDER BY date DESC

    Last run: 2 months ago
    DATE
    CHAIN
    BUY_VOLUME
    SELL_VOLUME
    TOTAL_VOLUME
    1
    2025-02-22 00:00:00.000Base35739430.52-34350061.6770089492.19
    2
    2025-02-22 00:00:00.000Ethereum6154121.04-2999237.59153358.54
    3
    2025-02-21 00:00:00.000Ethereum19098865.52-12702119.2931800984.81
    4
    2025-02-21 00:00:00.000Base168436855.97-164078606.11332515462.08
    5
    2025-02-20 00:00:00.000Ethereum7620594.43-11487733.9619108328.39
    6
    2025-02-20 00:00:00.000Base77368522.98-98093260.67175461783.65
    7
    2025-02-19 00:00:00.000Base75497652.19-83485380.77158983032.96
    8
    2025-02-19 00:00:00.000Ethereum12764981.31-11944534.1924709515.5
    9
    2025-02-18 00:00:00.000Ethereum21754832.56-29192627.9250947460.48
    10
    2025-02-18 00:00:00.000Base118239982.21-114797026.73233037008.94
    11
    2025-02-17 00:00:00.000Ethereum24958963.17-25777495.4650736458.63
    12
    2025-02-17 00:00:00.000Base118401439.26-107234026.13225635465.39
    13
    2025-02-16 00:00:00.000Base55585711.01-55876822.91111462533.92
    14
    2025-02-16 00:00:00.000Ethereum17604592.67-10361851.7727966444.44
    15
    2025-02-15 00:00:00.000Base42416901.49-45990414.3388407315.82
    16
    2025-02-15 00:00:00.000Ethereum1991963.81-5640943.027632906.83
    17
    2025-02-14 00:00:00.000Ethereum33973164.42-41938082.6775911247.09
    18
    2025-02-14 00:00:00.000Base94356039.91-100996332.3195352372.21
    19
    2025-02-13 00:00:00.000Base104675142.89-108645390.52213320533.41
    20
    2025-02-13 00:00:00.000Ethereum57619911.34-42842591.53100462502.87
    ...
    328
    24KB
    9s