#8109·hummingbot

[Bug] ZeroDivisionError in DMAN Controller when DCA parameters are set to 0 - Causes Infinite Loop

Author: mbigdeli-starCreated Mar 10, 2026Updated Sep 21, 2026
Labelsbug

Describe the bug

Description

While using the dman_maker_v2 controller on Hyperliquid, setting DCA-related parameters to 0 or leaving them effectively at zero causes a ZeroDivisionError. This error enters an infinite loop within the strategy tick, freezing the Hummingbot client entirely.

Steps to Reproduce

  1. Use a V2 Strategy with dman_maker_v2 controller.
  2. In the controller YAML config, set DCA spreads or amounts to 0.
  3. Run the script.
  4. As soon as the controller attempts to calculate the next DCA level or position rebalance, the client freezes.

Expected Behavior

The controller should either:

  • Validation: Prevent the script from starting if parameters lead to a division by zero.
  • Logic: Skip DCA calculations if the user intends to disable it by setting values to 0.

Actual Behavior

The bot enters a non-responsive state. Commands like stop or exit do not work. The only way to terminate is via kill -9 [PID], which leaves open orders on the exchange.

Environment

  • Hummingbot Version: [Your Version]
  • Controller: dman_maker_v2
  • Connector: hyperliquid_perpetual

Steps to reproduce

Release version

2.13.0

Type of installation

Source

Attach required files

No response