Skip to content

Commit

Permalink
Update TradeBotCli.py
Browse files Browse the repository at this point in the history
added recursion after bot selection.
added log of indicator data.
  • Loading branch information
iamcos committed Feb 3, 2022
1 parent 488275a commit 8716561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/bots/TradeBotCli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def menu(self) -> None:
if not self.manager.tradebot_selected():
log.info("Trade bot isn't selected")
self.manager.set_tradebot(self._select_tradebot())
self.menu()
else:
log.info("Trade bot selected")
user_selection: str = inquirer.select(
Expand Down Expand Up @@ -120,6 +121,7 @@ def _interfaces_menu_options(self) -> list[InterfacesForCli]:
choices: list[InterfacesForCli] = []

for indicator in self.indicators_names:
log.info('Indicator', indicator)
indicators: list[Interfaces] = self.manager \
.get_available_interfaces(indicator[1].lower())

Expand Down

0 comments on commit 8716561

Please sign in to comment.