From b8b0b51f0931565949fd71d6ce78395f1152f421 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Mon, 18 Mar 2019 21:33:37 +0100 Subject: [PATCH] review fixes --- .gitignore | 2 -- config/__init__.py | 1 - octobot.py | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 375db5a86..85dc6b924 100644 --- a/.gitignore +++ b/.gitignore @@ -122,5 +122,3 @@ config\.json *.ods temp_config\.json log - -config/trading_state_history\.json diff --git a/config/__init__.py b/config/__init__.py index 1d13a103b..aba16da4b 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -263,7 +263,6 @@ CONFIG_DEFAULT_TRADING_FILE = f"{CONFIG_FOLDER}/default_trading_config.json" DEFAULT_CONFIG_FILE = f"{CONFIG_FOLDER}/default_config.json" LOGGING_CONFIG_FILE = f"{CONFIG_FOLDER}/logging_config.ini" -SIMULATOR_STATE_SAVE_FILE = f"{CONFIG_FOLDER}/trading_state_history.json" # Tentacle Config STRATEGIES_REQUIRED_TIME_FRAME = "required_time_frames" diff --git a/octobot.py b/octobot.py index 97f367860..35f695112 100644 --- a/octobot.py +++ b/octobot.py @@ -130,8 +130,7 @@ async def create_services(self): async def create_exchange_traders(self, ignore_config=False): self.async_loop = asyncio.get_running_loop() available_exchanges = ccxt.exchanges - target_exchanges = self.config[CONFIG_EXCHANGES] - for exchange_class_string in target_exchanges: + for exchange_class_string in self.config[CONFIG_EXCHANGES]: if exchange_class_string in available_exchanges: exchange_type = getattr(ccxt, exchange_class_string)