trade_classification function

Classification and aggregation of high-frequency data