diff --git a/docs/developer.md b/docs/developer.md index 48b021027..dcbaa3ca9 100644 --- a/docs/developer.md +++ b/docs/developer.md @@ -229,7 +229,7 @@ The method `global_stop()` will be called whenever a trade closed (sell order co ##### Protections - calculating lock end time Protections should calculate the lock end time based on the last trade it considers. -This avoids relocking should the lookback-period be longer than the actual lock period. +This avoids re-locking should the lookback-period be longer than the actual lock period. The `IProtection` parent class provides a helper method for this in `calculate_lock_end()`. diff --git a/freqtrade/pairlist/pairlistmanager.py b/freqtrade/pairlist/pairlistmanager.py index 89bab99be..810a22300 100644 --- a/freqtrade/pairlist/pairlistmanager.py +++ b/freqtrade/pairlist/pairlistmanager.py @@ -26,9 +26,6 @@ class PairListManager(): self._pairlist_handlers: List[IPairList] = [] self._tickers_needed = False for pairlist_handler_config in self._config.get('pairlists', None): - if 'method' not in pairlist_handler_config: - logger.warning(f"No method found in {pairlist_handler_config}, ignoring.") - continue pairlist_handler = PairListResolver.load_pairlist( pairlist_handler_config['method'], exchange=exchange, diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 07f4b5a4f..bcda6368a 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -419,7 +419,7 @@ class Trade(_DECL_BASE): raise ValueError(f'Unknown order type: {order_type}') cleanup_db() - def close(self, rate: float, *, show_msg: bool = False) -> None: + def close(self, rate: float, *, show_msg: bool = True) -> None: """ Sets close_rate to the given rate, calculates total profit and marks trade as closed