Deprecate capital_available_percentage

This commit is contained in:
Matthias
2020-01-03 10:58:31 +01:00
parent 6d01653bfe
commit f3beaa3374
11 changed files with 27 additions and 9 deletions

View File

@@ -80,3 +80,13 @@ def process_temporary_deprecated_settings(config: Dict[str, Any]) -> None:
f"Using precision_filter setting is deprecated and has been replaced by"
"PrecisionFilter. Please refer to the docs on configuration details")
config['pairlists'].append({'method': 'PrecisionFilter'})
if (config.get('edge', {}.get('enabled', False))
and config.get('edge', {}).get('capital_available_percentage')):
logger.warning(
"DEPRECATED: "
"Using 'edge.capital_available_percentage' has been deprecated in favor of "
"'tradable_balance_ratio'. Please migrate your configuration to "
"'tradable_balance_ratio' and remove 'capital_available_percentage' "
"from the edge configuration."
)