From 69bfc2d777235688aea39902d65507d9d2d1a182 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Fri, 8 Sep 2017 08:03:24 +0300 Subject: [PATCH] remove unnecessary parentheses --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ee1cbd113..239666d6f 100755 --- a/main.py +++ b/main.py @@ -169,7 +169,7 @@ def handle_trade(trade: Trade) -> None: current_rate = api_wrapper.get_ticker(trade.pair)['bid'] current_profit = 100 * ((current_rate - trade.open_rate) / trade.open_rate) - if ('stoploss' in CONFIG) & (current_profit < float(CONFIG['stoploss'])*100): + if 'stoploss' in CONFIG & current_profit < float(CONFIG['stoploss'])*100: logger.debug('Stop loss hit.') execute_sell(trade, current_rate) return