Add helper method to calculate protection until

This commit is contained in:
Matthias
2020-11-17 19:43:12 +01:00
parent 47cd856fea
commit 59091ef2b7
6 changed files with 27 additions and 8 deletions

View File

@@ -54,7 +54,8 @@ class ProtectionManager():
# Early stopping - first positive result blocks further trades
if result and until:
PairLocks.lock_pair('*', until, reason)
if not PairLocks.is_global_lock(until):
PairLocks.lock_pair('*', until, reason)
result = True
return result