Initial steps to change bid/ask pricing to enter/exit
This commit is contained in:
@@ -105,8 +105,8 @@ def _validate_price_config(conf: Dict[str, Any]) -> None:
|
||||
"""
|
||||
# TODO-lev: check this again when determining how to migrate pricing strategies!
|
||||
if (conf.get('order_types', {}).get('entry') == 'market'
|
||||
and conf.get('bid_strategy', {}).get('price_side') != 'ask'):
|
||||
raise OperationalException('Market buy orders require bid_strategy.price_side = "ask".')
|
||||
and conf.get('entry_pricing', {}).get('price_side') != 'ask'):
|
||||
raise OperationalException('Market buy orders require entry_pricing.price_side = "ask".')
|
||||
|
||||
if (conf.get('order_types', {}).get('exit') == 'market'
|
||||
and conf.get('ask_strategy', {}).get('price_side') != 'bid'):
|
||||
|
@@ -81,8 +81,6 @@ class Configuration:
|
||||
# Normalize config
|
||||
if 'internals' not in config:
|
||||
config['internals'] = {}
|
||||
if 'ask_strategy' not in config:
|
||||
config['ask_strategy'] = {}
|
||||
|
||||
if 'pairlists' not in config:
|
||||
config['pairlists'] = []
|
||||
|
Reference in New Issue
Block a user