freemartianBalance Type Liquidity
    Updated 2022-11-16
    with source as(
    select
    date,
    balance_type,
    PROJECT_NAME as token_name,
    a.currency,
    balance / POW(10, decimal) as adjusted_bal,
    adjusted_bal * price as bal_usd
    from osmosis.core.fact_daily_balances a LEFT JOIN osmosis.core.dim_labels b on a.currency = b.ADDRESS
    LEFT JOIN osmosis.core.dim_prices c on LOWER(b.PROJECT_NAME) = lower(c.SYMBOL) and c.recorded_at = a.date
    where 1=1
    and date > CURRENT_DATE - 60
    and token_name != 'INJ')

    select
    date,
    balance_type,
    sum(bal_usd)
    from source
    group by 1,2
    Run a query to Download Data