Afonso_DiazOvertime
    Updated 2025-01-27
    with

    pricet as (
    select
    hour::date as date,
    'FLOW' as symbol,
    avg(price) as token_price_usd
    from
    flow.price.ez_prices_hourly
    where
    symbol = 'FLOW'
    group by 1, 2

    union all

    select
    hour::date as date,
    'stFLOW' as symbol,
    avg(price) as token_price_usd
    from
    flow.price.ez_prices_hourly
    where
    symbol = 'FLOW'
    group by 1, 2

    union all

    select
    date(f.value[0]) as date,
    'BLT' as symbol,
    f.value[1] as token_price_usd
    from
    (
    select
    livequery.live.udf_api(
    'https://api.coingecko.com/api/v3/coins/blocto-token/market_chart?vs_currency=usd&days=365'
    QueryRunArchived: QueryRun has been archived