diff --git a/Trading/Mode/index_trading_mode/index_trading.py b/Trading/Mode/index_trading_mode/index_trading.py index ef1537bb5..03b20691b 100644 --- a/Trading/Mode/index_trading_mode/index_trading.py +++ b/Trading/Mode/index_trading_mode/index_trading.py @@ -427,7 +427,7 @@ def _update_coins_distribution(self): distribution = index_distribution.get_uniform_distribution([ symbol.base for symbol in self.exchange_manager.exchange_config.traded_symbols - ]) + ]) if self.exchange_manager else [] self.ratio_per_asset = { asset[index_distribution.DISTRIBUTION_NAME]: asset for asset in distribution