Skip to content

Commit ba826bf

Browse files
committed
apply int(round(n_positions))
1 parent 84a22c1 commit ba826bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ def format_config(config: dict, verbose=True, live_only=False) -> dict:
552552
template["optimize"]["bounds"], result["optimize"]["bounds"], verbose=verbose
553553
)
554554

555+
for pside in result['bot']:
556+
result['bot'][pside]['n_positions'] = int(round(result['bot'][pside]['n_positions']))
557+
555558
if not live_only:
556559
# unneeded adjustments if running live
557560
for k in ("approved_coins", "ignored_coins"):

0 commit comments

Comments
 (0)