Query editor
SELECTDATE_TRUNC('day', block_time) AS day,chain,-- SUM of close_volume gives the total Notional Value of liquidated positionsSUM(close_volume) AS liquidation_volume_usd,-- SUM of margin_usd gives the actual Collateral lost (optional, good for tooltips)SUM(margin_usd) AS collateral_lost_usd,COUNT(*) AS liquidation_countFROM"dune"."apollox-finance"."result_view_all_trade_master_close_open"WHEREdetail_close_type = 'LIQ'GROUP BY1, 2ORDER BY1 DESC