Skip to content

Commit

Permalink
fix(Strategy): type conversion for no_levels param in range bot
Browse files Browse the repository at this point in the history
  • Loading branch information
kieran-mackle committed Mar 23, 2024
1 parent 891b6ab commit 2cb4394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptobots/strategies/range.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
# Unpack parameters
self.lower_price = Decimal(str(parameters["lower_price"]))
self.upper_price = Decimal(str(parameters["upper_price"]))
self.no_levels = int(2 * np.ceil(parameters["no_levels"] / 2))
self.no_levels = int(2 * np.ceil(float(parameters["no_levels"]) / 2))
self.max_position = Decimal(str(parameters["max_position"]))

# Initialise state
Expand Down

0 comments on commit 2cb4394

Please sign in to comment.