Small finetunings to documentation

This commit is contained in:
Matthias 2020-12-07 16:07:00 +01:00
parent b5289d5f0e
commit c37bc307e2
3 changed files with 2 additions and 5 deletions

View File

@ -229,7 +229,7 @@ The method `global_stop()` will be called whenever a trade closed (sell order co
##### Protections - calculating lock end time ##### Protections - calculating lock end time
Protections should calculate the lock end time based on the last trade it considers. 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()`. The `IProtection` parent class provides a helper method for this in `calculate_lock_end()`.

View File

@ -26,9 +26,6 @@ class PairListManager():
self._pairlist_handlers: List[IPairList] = [] self._pairlist_handlers: List[IPairList] = []
self._tickers_needed = False self._tickers_needed = False
for pairlist_handler_config in self._config.get('pairlists', None): 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 = PairListResolver.load_pairlist(
pairlist_handler_config['method'], pairlist_handler_config['method'],
exchange=exchange, exchange=exchange,

View File

@ -419,7 +419,7 @@ class Trade(_DECL_BASE):
raise ValueError(f'Unknown order type: {order_type}') raise ValueError(f'Unknown order type: {order_type}')
cleanup_db() 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 Sets close_rate to the given rate, calculates total profit
and marks trade as closed and marks trade as closed