Only call stop methods when they actually support this method
This commit is contained in:
@@ -12,6 +12,11 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
class LowProfitPairs(IProtection):
|
||||
|
||||
# Can globally stop the bot
|
||||
has_global_stop: bool = False
|
||||
# Can stop trading for one pair
|
||||
has_local_stop: bool = True
|
||||
|
||||
def __init__(self, config: Dict[str, Any], protection_config: Dict[str, Any]) -> None:
|
||||
super().__init__(config, protection_config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user