Skip to content

Commit

Permalink
(fix) candles downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
cardosofede committed Apr 2, 2024
1 parent 3424d68 commit 6f0d00d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6f0d00d

Please sign in to comment.