About this question
Medium · data_manipulation · Quant Researcher interview question · dollar_bars, market_microstructure, ohlcv, data_manipulation, tick_data
Dollar bars aggregate tick-level trade records into bars representing a constant notional value, rather than a constant time interval. This sampling method adapts to market activity, producing more stationary time series for microstructure analysis and algorithmic execution. They are a foundational data preprocessing technique in quantitative finance. Task Implement the function dollar_bar_construction(ticks, threshold) to aggregate a stream of trade ticks into dollar bars. The function should