freeman_7VOLUME AND FEES
    Updated 2025-01-24
    -- volue and fees

    With PlatformStatistic as (
    select
    day
    ,"Blockchain"
    ,coalesce(LIMITANDSIMPLE_VOLUME,0) + coalesce(ADVN_VOLUME,0) as Total_volume
    ,coalesce(LIMITANDSIMPLEUSER,0) + coalesce(ADVANCED_USERS,0) as Total_User
    from $query('8f4c6614-783d-4b47-b2fd-96b725873b8e')
    )
    ,VolumeAndUsers as (
    SELECT
    day
    ,sum(Total_volume) as LifeTimeVolume
    ,sum(Total_User) as LifeTimeUsers
    from PlatformStatistic
    group by day
    )

    -- select
    -- day
    -- ,"Blockchain"
    -- ,LIMITANDSIMPLE_VOLUME + ADVN_VOLUME as Total_volume
    -- ,LIMITANDSIMPLEUSER + ADVANCED_USERS as Total_User
    -- from PlatformStatistic
    ,Revenue as (
    select
    date as day
    ,sum(Revenue) as TotalRevenue
    from (
    select
    date
    ,chain
    ,Revenue
    FROM external.defillama.fact_protocol_fees_revenue
    where protocol ilike 'ODOS'
    Last run: 3 months ago
    DAY
    VOLUME
    USERS
    Total Revenue
    TOTALLIFETIMEVOLUME
    TOTALLFETIMEFEE
    1
    2024-09-14 00:00:00.00025660322.9261956561590529777842021.48712167258
    2
    2024-02-06 00:00:00.00012386939.983398203829777842021.48712167258
    3
    2023-08-06 00:00:00.000668471.078129777842021.48712167258
    4
    2023-10-16 00:00:00.0006223209.72406436529777842021.48712167258
    5
    2024-09-16 00:00:00.00046758423.21061575582237929777842021.48712167258
    6
    2024-06-06 00:00:00.00082533323.87946377396367729777842021.48712167258
    7
    2025-01-09 00:00:00.000185263007.2892710475029777842021.48712167258
    8
    2024-12-26 00:00:00.000116659809.4028029501029777842021.48712167258
    9
    2024-10-30 00:00:00.000104085488.43335886171241329777842021.48712167258
    10
    2024-08-17 00:00:00.00023942127.0213312459945329777842021.48712167258
    11
    2023-08-16 00:00:00.0008090687.815227029777842021.48712167258
    12
    2023-12-03 00:00:00.0006963422.64413937329777842021.48712167258
    13
    2023-09-25 00:00:00.0005317291.44357811429777842021.48712167258
    14
    2023-08-20 00:00:00.0006368305.7618383529777842021.48712167258
    15
    2023-10-08 00:00:00.0004759534.6838572529777842021.48712167258
    16
    2023-08-05 00:00:00.000247911.9712129777842021.48712167258
    17
    2024-02-04 00:00:00.0007401295.86483257529777842021.48712167258
    18
    2024-10-09 00:00:00.00068724330.19875477173704129777842021.48712167258
    19
    2024-02-28 00:00:00.00032378411.444608402029777842021.48712167258
    20
    2024-05-03 00:00:00.00050247716.79922178301190929777842021.48712167258
    ...
    558
    42KB
    3s