Update precisionfilter to use last instead of ask or bid.

This commit is contained in:
Matthias 2022-03-13 15:23:01 +01:00
parent 7146122f4a
commit 3133be19e3

View File

@ -51,7 +51,7 @@ class PrecisionFilter(IPairList):
:param ticker: ticker dict as returned from ccxt.fetch_tickers()
:return: True if the pair can stay, false if it should be removed
"""
stop_price = ticker['ask'] * self._stoploss
stop_price = ticker['last'] * self._stoploss
# Adjust stop-prices to precision
sp = self._exchange.price_to_precision(pair, stop_price)