How would you do all kinds of time frames especially time frames where you have gaps in time over 24hr? Like accounting for close/swap on 24hr currency markets or commodities / indexes ?
clickhouse downsample into OHLC time bar intervals on stackoverflow
Shows how to do 1 minute but does not show how to-do different time frames or deal with swap / close time during 24hr.
How would one go about using time in golang with clickhouse so time.Time from golang could be used in clickhouse date where clause ?