flake8 fix
This commit is contained in:
@@ -1325,7 +1325,7 @@ class FreqtradeBot(LoggingMixin):
|
||||
self.rpc.send_msg(msg)
|
||||
|
||||
def _notify_exit_cancel(self, trade: Trade, order_type: str, reason: str,
|
||||
sub_trade: bool = False, order: Order=None) -> None:
|
||||
sub_trade: bool = False, order: Order = None) -> None:
|
||||
"""
|
||||
Sends rpc notification when a sell cancel occurred.
|
||||
"""
|
||||
|
||||
@@ -449,7 +449,7 @@ class Backtesting:
|
||||
# Custom exit pricing only for sell-signals
|
||||
if order_type == 'limit':
|
||||
close_rate = strategy_safe_wrapper(self.strategy.custom_exit_price,
|
||||
default_retval=close_rate)(
|
||||
default_retval=close_rate)(
|
||||
pair=trade.pair, trade=trade,
|
||||
current_time=sell_candle_time,
|
||||
proposed_rate=close_rate, current_profit=current_profit)
|
||||
|
||||
@@ -249,7 +249,8 @@ class Wallets:
|
||||
|
||||
if min_stake_amount is not None and min_stake_amount > max_stake_amount:
|
||||
if self._log:
|
||||
logger.warning(f"Minimum stake amount > available balance.{min_stake_amount} > {max_stake_amount}")
|
||||
logger.warning("Minimum stake amount > available balance."
|
||||
f"{min_stake_amount} > {max_stake_amount}")
|
||||
return 0
|
||||
if min_stake_amount is not None and stake_amount < min_stake_amount:
|
||||
if self._log:
|
||||
|
||||
Reference in New Issue
Block a user