flake8 fix

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-03-30 18:43:24 +05:30
parent c1c20e4d8a
commit 0fb40ae015
5 changed files with 6 additions and 5 deletions

View File

@@ -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.
"""

View File

@@ -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)

View File

@@ -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: