CryptoLioncomp btc eth apy
Updated 2021-06-14
99
1
2
3
4
5
6
7
8
9
10
11
12
›
⌄
SELECT
date_trunc('day',block_hour) as day,
underlying_symbol,
avg(supply_apy) as supply_apy_,
avg(comp_apy_supply) as distribution,
distribution+supply_apy_ as total_apy
FROM compound.market_stats
WHERE
(underlying_symbol = 'WBTC' OR underlying_symbol = 'ETH')
AND block_hour >= getdate() - interval '2 month'
GROUP BY 1,2
ORDER BY 1
Run a query to Download Data