Skip to content

Commit

Permalink
Merge pull request #126 from hummingbot/feat/fix_candles_downloader
Browse files Browse the repository at this point in the history
(fix) candles downloader
  • Loading branch information
cardosofede authored Apr 2, 2024
2 parents b154835 + 6f0d00d commit 2ebeca9
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 2ebeca9

Please sign in to comment.