From 6f0d00dafe893561984427dd22ccc7a2106b4e6b Mon Sep 17 00:00:00 2001 From: cardosofede Date: Tue, 2 Apr 2024 12:13:03 -0300 Subject: [PATCH] (fix) candles downloader --- .../bots/data_downloader/scripts/download_candles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hummingbot_files/bots/data_downloader/scripts/download_candles.py b/hummingbot_files/bots/data_downloader/scripts/download_candles.py index 46d737c6..bfb5d100 100644 --- a/hummingbot_files/bots/data_downloader/scripts/download_candles.py +++ b/hummingbot_files/bots/data_downloader/scripts/download_candles.py @@ -47,13 +47,13 @@ def __init__(self, connectors: Dict[str, ConnectorBase]): def on_tick(self): for trading_pair, candles_info in self.candles.items(): - if not candles_info["candles"].is_ready: + if not candles_info["candles"].ready: self.logger().info(f"Candles not ready yet for {trading_pair}! Missing {candles_info['candles']._candles.maxlen - len(candles_info['candles']._candles)}") pass else: df = candles_info["candles"].candles_df df.to_csv(candles_info["csv_path"], index=False) - if all(candles_info["candles"].is_ready for candles_info in self.candles.values()): + if all(candles_info["candles"].ready for candles_info in self.candles.values()): HummingbotApplication.main_application().stop() def on_stop(self):