Query editor
selectday,sum(case when supplied_amount_usd > 0 then supplied_amount_usd end) as supplied_amount_usd_pos,sum(case when supplied_amount_usd < 0 then supplied_amount_usd end) as supplied_amount_usd_neg,sum(available_amount_cumulative_usd) as available_amount_cumulative_usd,sum(supplied_amount_cumulative_usd) as supplied_amount_cumulative_usd,sum(borrow_amount_cumulative_usd) as borrow_amount_cumulative_usd,sum(borrow_amount_cumulative_usd) / sum(supplied_amount_cumulative_usd) as utilisation,sum(liq_amount_usd) as liq_amount_usd,sum(liq_amount_cumulative_usd) as liq_amount_cumulative_usd,sum(fee_amount_usd) as fee_amount_usd,sum(fee_amount_cumulative_usd) as fee_amount_cumulative_usdfrom "query_4803400(blockchain='{{blockchain}}')"where blockchain = '{{blockchain}}'group by 1order by day desc