remove unnecessary parentheses
This commit is contained in:
parent
a1d616f8c2
commit
69bfc2d777
2
main.py
2
main.py
@ -169,7 +169,7 @@ def handle_trade(trade: Trade) -> None:
|
|||||||
current_rate = api_wrapper.get_ticker(trade.pair)['bid']
|
current_rate = api_wrapper.get_ticker(trade.pair)['bid']
|
||||||
current_profit = 100 * ((current_rate - trade.open_rate) / trade.open_rate)
|
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.')
|
logger.debug('Stop loss hit.')
|
||||||
execute_sell(trade, current_rate)
|
execute_sell(trade, current_rate)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user