We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04315f commit 911a803Copy full SHA for 911a803
freqtrade/resolvers/strategy_resolver.py
@@ -150,7 +150,9 @@ def _strategy_sanity_validations(strategy: IStrategy):
150
# Ensure necessary migrations are performed first.
151
validate_migrated_strategy_settings(strategy.config)
152
153
- if not all(k in strategy.order_types for k in REQUIRED_ORDERTYPES):
+ if not strategy.order_types or not all(
154
+ k in strategy.order_types for k in REQUIRED_ORDERTYPES
155
+ ):
156
raise ImportError(
157
f"Impossible to load Strategy '{strategy.__class__.__name__}'. "
158
f"Order-types mapping is incomplete."
0 commit comments