mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 01:21:11 +00:00
chore: improve wording for cooldown_period
This commit is contained in:
parent
98c8521057
commit
f63910d355
|
@ -42,7 +42,7 @@ class CooldownPeriod(IProtection):
|
||||||
# Get latest trade
|
# Get latest trade
|
||||||
# Ignore type error as we know we only get closed trades.
|
# Ignore type error as we know we only get closed trades.
|
||||||
trade = sorted(trades, key=lambda t: t.close_date)[-1] # type: ignore
|
trade = sorted(trades, key=lambda t: t.close_date)[-1] # type: ignore
|
||||||
self.log_once(f"Cooldown for {pair} for {self.stop_duration_str}.", logger.info)
|
self.log_once(f"Cooldown for {pair} {self.unlock_reason_time_element}.", logger.info)
|
||||||
until = self.calculate_lock_end([trade])
|
until = self.calculate_lock_end([trade])
|
||||||
|
|
||||||
return ProtectionReturn(
|
return ProtectionReturn(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user