Deprecate keys other than quoteVolume

fixes #2981
This commit is contained in:
Matthias
2020-04-25 16:29:17 +02:00
parent d1a24db6b7
commit 9fa21628d7
4 changed files with 20 additions and 7 deletions

View File

@@ -39,6 +39,10 @@ class VolumePairList(IPairList):
if not self._validate_keys(self._sort_key):
raise OperationalException(
f'key {self._sort_key} not in {SORT_VALUES}')
if self._sort_key != 'quoteVolume':
logger.warning(
"DEPRECATED: using any key other than quoteVolume for VolumePairList is deprecated."
)
@property
def needstickers(self) -> bool: