adjusted the error message of "more than 5 queries needed for exchange" to be more verbose to the user.

Now they don't have to guess what the limit actually is to then work towards, helping to better understand the error message.
This commit is contained in:
hippocritical
2025-12-22 12:45:31 +01:00
parent d0ac462dd3
commit 335e632bbc

View File

@@ -880,7 +880,8 @@ class Exchange:
raise ConfigurationError(
f"This strategy requires {startup_candles} candles to start, "
"which is more than 5x "
f"the amount of candles {self.name} provides for {timeframe}."
f"the amount of candles {self.name} provides for {timeframe}"
f"at a startup_candle_count limit of {candle_limit * 5 - 1}."
)
elif required_candle_call_count > 1:
raise ConfigurationError(