Query editor
/* ============================================================================Q6 · Daily trading volume, split by protocol and venue----------------------------------------------------------------------------Replaces the single combined volume view. Volume, not fees or revenue.Tsunami · bonding curves gross quote traded on curves (Q1)Calamari · Tsunami-graduated pools priceable leg of each swap (Q2). Tsunami's1% hook ALSO charges on this volume andCalamari's 0.1% protocol fee applies too.Calamari · direct pools pools created straight on CalamariCalamari · third-party-hook pools pools with a non-Tsunami hookEach swap is counted once, in one segment.========================================================================== */SELECT day, 'Tsunami' AS protocol, 'Tsunami · bonding curves' AS segment,round(sum(volume_usd)) AS volume_usd, sum(fee_events) AS tradesFROM query_9105844WHERE fee_source = 'Curve fees (pre-graduation)'GROUP BY 1UNION ALLSELECT day, 'Calamari', 'Calamari · ' || pool_class,round(sum(volume_usd)), sum(swaps)FROM query_9105848GROUP BY day, pool_classORDER BY 1 DESC, 3