diff --git a/sysdata/tools/cleaner.py b/sysdata/tools/cleaner.py index 255b15ce6f..4dd7023754 100644 --- a/sysdata/tools/cleaner.py +++ b/sysdata/tools/cleaner.py @@ -31,28 +31,42 @@ def apply_price_cleaning(data: dataBlob, broker_prices = copy(broker_prices_raw) ## It's important that the data is in local time zone so that this works + price_length = len(broker_prices) if cleaning_config.ignore_future_prices: - log.msg("Ignoring prices with future timestamps") broker_prices = broker_prices.remove_future_data() + new_price_length = len(broker_prices) + if new_price_length