Add loading order_types from config file

This commit is contained in:
Matthias
2018-11-17 10:14:18 +01:00
parent e6baa9ccf2
commit 24ed9a8b7d
3 changed files with 40 additions and 0 deletions

View File

@@ -75,6 +75,15 @@ class StrategyResolver(object):
else:
config['process_only_new_candles'] = self.strategy.process_only_new_candles
if 'order_types' in config:
self.strategy.order_types = config['order_types']
logger.info(
"Override strategy 'order_types' with value in config file: %s.",
config['order_types']
)
else:
config['order_types'] = self.strategy.order_types
# Sort and apply type conversions
self.strategy.minimal_roi = OrderedDict(sorted(
{int(key): value for (key, value) in self.strategy.minimal_roi.items()}.items(),