hrst79daily
    Updated 10 days ago
    with price as (
    select
    hour,
    price
    from
    ethereum.price.ez_prices_hourly
    where
    symbol = 'WETH'
    )

    select
    block_timestamp :: date as date,
    count(DISTINCT a.tx_hash) as swaps,
    count(DISTINCT from_address) as users,
    sum(value) as volume_eth,
    sum(value * price) as volume_usd,
    sum(volume_eth) over (
    order by
    date
    ) as cum_volume_eth,
    sum(volume_usd) over (
    order by
    date
    ) as cum_volume_usd
    from
    ink.core.fact_transactions a
    left outer join price b on date_trunc('hour', a.block_timestamp) = b.hour
    where
    TO_ADDRESS = '0x5839389261d1f38aac7c8e91dcda85646becb414'
    and TX_SUCCEEDED = 'TRUE'
    -- and tx_hash in (SELECT tx_hash from ink.core.fact_event_logs where contract_address = '0x5839389261d1f38aac7c8e91dcda85646becb414' )
    group by
    1
    Last run: 10 days ago
    DATE
    SWAPS
    USERS
    VOLUME_ETH
    VOLUME_USD
    CUM_VOLUME_ETH
    CUM_VOLUME_USD
    1
    2025-01-15 00:00:00.000139621.3609352224457.4131061188.98137115528879.421397864
    2
    2025-01-24 00:00:00.0003161425.85217343919772.6478771334.645743712114188.91263705
    3
    2025-01-08 00:00:00.00021000.103358.74703
    4
    2025-03-12 00:00:00.0006965163.7774286247175.489837321985.6749550212706596.79108201
    5
    2025-02-21 00:00:00.00068740635.91590631697202.925362681760.9829706042182651.06312906
    6
    2025-02-03 00:00:00.00045416338.560502675102061.763270755308.564619415967166.571838031
    7
    2025-02-20 00:00:00.00081854411.66917970631913.636541925725.0670642882085448.13776638
    8
    2025-02-18 00:00:00.000130591032.31807779586788.962261896703.1774618712025939.15712497
    9
    2025-01-14 00:00:00.000275941.7469955595596.8804026287.62043593324422.008291746
    10
    2025-02-28 00:00:00.00063343612.01744407826367.971726603869.0877382292453711.69743665
    11
    2025-02-01 00:00:00.0002899646.188019101149528.764882442221.988242822719852.188831185
    12
    2025-03-11 00:00:00.0005223324.2920425098201.421278535981.8975263972699421.30124469
    13
    2025-03-28 00:00:00.00010277029.2792296518213.5760403761047.349161832827612.33666717
    14
    2025-03-10 00:00:00.0003842345.83263305611428.590839453977.6054838882691219.87996616
    15
    2025-01-17 00:00:00.000105661.4082850394744.64147505313.74854152944891.694075055
    16
    2025-04-04 00:00:00.0001613120326.57385717748202.0969238651095.7597836882916129.54668267
    17
    2025-03-13 00:00:00.0006943704.3014538877999.650332082989.9764089092714596.44141409
    18
    2025-01-30 00:00:00.00025910010.07306001532067.053707003149.024669603481393.026765428
    19
    2025-03-22 00:00:00.0009587722.8728977885710.9215097181022.3613673962777418.49520816
    20
    2025-02-17 00:00:00.0002047152313.29018290636235.719835106670.8593840751939150.19486308
    99
    9KB
    8s