keshanUST and MIM
    Updated 2022-02-07
    select hour,
    max(case when symbol='UST' then price end) as UST,
    max(case when symbol='MIM' then price end) as MIM,
    100 * (MIM - UST)/MIM as "MIM Deviation from UST",
    100 * (MIM - 1) as "MIM Deviation from USD"
    from ethereum.token_prices_hourly
    where (symbol = 'MIM' or symbol = 'UST')
    and date_trunc('day', hour) >= date_trunc('day', CURRENT_DATE) - 21
    group by 1

    Run a query to Download Data