hessTop Pairs by Volume (USD)
    Updated 2024-09-10
    -- forked from Overview of Trading Per Month @ https://flipsidecrypto.xyz/edit/queries/d38ca045-072c-4ef1-964b-2e5452cee00d

    with price as ( select hour::date as date,
    symbol,
    avg(price) as avg_price
    from flow.price.ez_prices_hourly
    where symbol is not null
    and symbol not in ('FLOW','CEWBTC')
    group by 1,2
    UNION
    select hour::date as date,
    symbol,
    avg(price) as avg_price
    from ethereum.price.ez_prices_hourly
    where symbol = 'ETH'
    group by 1,2
    UNION
    select hour::date as date,
    'CEWBTC' as symbol,
    avg(price) as avg_price
    from ethereum.price.ez_prices_hourly
    where symbol = 'WBTC'
    group by 1,2
    UNION
    select hour::date as date,
    symbol,
    avg(price) as avg_price
    from polygon.price.ez_prices_hourly
    where symbol = 'MATIC'
    group by 1,2
    UNION
    Select TO_TIMESTAMP(value[0]::string) as date,
    'BLT' as symbol,
    value[1] as avg_price
    from (
    SELECT livequery.live.udf_api(
    QueryRunArchived: QueryRun has been archived