Query editor
withstrk as (selectdate_trunc('day', minute) AS date,avg(price) as pricefromprices.usdwhereblockchain = 'ethereum'and contract_address = 0xca14007eff0db1f8135f4c25b34de49ab0d42766group by1),eth as (selectdate_trunc('day', minute) AS date,avg(price) as pricefromprices.usdwhereblockchain = 'ethereum'and contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2group by1),btc as (selectdate_trunc('day', minute) AS date,avg(price) as pricefromprices.usdwhereblockchain = 'ethereum'and contract_address = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599group by1)selectstrk.date as "Date",strk.price as "STRK",eth.price as "ETH",btc.price as "BTC",avg(strk.price) over (order by strk.date rows between 30 preceding and current row) as "30D-MA STRK"fromstrkjoin eth on strk.date = eth.datejoin btc on strk.date = btc.dateorder by1 desc