diff --git a/src/passivbot.py b/src/passivbot.py index 960377872..4596962b8 100644 --- a/src/passivbot.py +++ b/src/passivbot.py @@ -259,7 +259,7 @@ def set_live_configs(self): } for pside in ["long", "short"]: self.config["bot"][pside]["n_positions"] = min( - len(self.eligible_symbols), int(round(self.config["bot"]["long"]["n_positions"])) + len(self.eligible_symbols), int(round(self.config["bot"][pside]["n_positions"])) ) for symbol in self.markets_dict: self.live_configs[symbol] = deepcopy(self.config["bot"])