From 8f6db3c6de5e371778328ed8239b834afe185f74 Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 15 Jun 2022 08:33:44 +0100 Subject: [PATCH] add more logging to price cleaning --- sysdata/tools/cleaner.py | 24 ++++++++++++++++++----- sysproduction/update_historical_prices.py | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) 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