Query editor
select date_trunc('day', btc.minute) as time, ROUND(AVG(stx.price),6) as stx_usd, ROUND(AVG(btc.price),2) as btc_usd, ROUND(AVG(stx.price / btc.price),8) as stx_btc, ROUND(AVG(btc.price / stx.price),2) as btc_stxfrom prices.usd stxleft join prices.usd btc on (btc.minute = stx.minute)where stx.blockchain is NULLAND stx.symbol = 'STX'AND btc.blockchain is NULLAND btc.symbol = 'BTC'AND stx.minute >= date '2021-01-14' -- stacks 2.0 genesisGROUP BY 1ORDER BY 1