Some small cleanups

This commit is contained in:
Matthias
2019-10-30 16:32:22 +01:00
parent d89a7d5235
commit 14758dbe10
3 changed files with 19 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ class LowPriceFilter(IPairListFilter):
self._low_price_percent = config['pairlist']['filters']['LowPriceFilter'].get(
'low_price_percent', 0)
def _validate_precision_filter_lowprice(self, ticker) -> bool:
def _validate_ticker_lowprice(self, ticker) -> bool:
"""
Check if if one price-step is > than a certain barrier.
:param ticker: ticker dict as returned from ccxt.load_markets()
@@ -42,7 +42,7 @@ class LowPriceFilter(IPairListFilter):
ticker = [t for t in tickers if t['symbol'] == p][0]
# Filter out assets which would not allow setting a stoploss
if self._low_price_percent and not self._validate_precision_filter_lowprice(ticker):
if self._low_price_percent and not self._validate_ticker_lowprice(ticker):
pairlist.remove(p)
return pairlist