rename LowPriceFilter to PrieFilter

This commit is contained in:
Matthias
2019-11-19 06:41:05 +01:00
parent c22b00b303
commit a8855bf795
5 changed files with 15 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ REQUIRED_ORDERTIF = ['buy', 'sell']
REQUIRED_ORDERTYPES = ['buy', 'sell', 'stoploss', 'stoploss_on_exchange']
ORDERTYPE_POSSIBILITIES = ['limit', 'market']
ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc']
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList', 'PrecisionFilter', 'LowPriceFilter']
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList', 'PrecisionFilter', 'PriceFilter']
DRY_RUN_WALLET = 999.9
MATH_CLOSE_PREC = 1e-14 # Precision used for float comparisons

View File

@@ -7,7 +7,7 @@ from freqtrade.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)
class LowPriceFilter(IPairList):
class PriceFilter(IPairList):
def __init__(self, exchange, pairlistmanager, config, pairlistconfig: dict,
pairlist_pos: int) -> None:
@@ -32,7 +32,7 @@ class LowPriceFilter(IPairList):
def _validate_ticker_lowprice(self, ticker) -> bool:
"""
Check if if one price-step is > than a certain barrier.
Check if if one price-step (pip) is > than a certain barrier.
:param ticker: ticker dict as returned from ccxt.load_markets()
:param precision: Precision
:return: True if the pair can stay, false if it should be removed