Skip to content

Commit

Permalink
bug fix: 'long' should be pside
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Oct 11, 2024
1 parent 0a52344 commit db8241f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passivbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit db8241f

Please sign in to comment.