mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
remove unnecessary comparison
This commit is contained in:
parent
6b7afb80b2
commit
c1ef3f526c
|
@ -183,7 +183,7 @@ def handle_trade(trade: Trade) -> bool:
|
|||
|
||||
logger.debug('Handling %s ...', trade)
|
||||
current_rate = exchange.get_ticker(trade.pair)['bid']
|
||||
if should_sell(trade, current_rate, datetime.utcnow()) or get_signal(trade.pair, SignalType.SELL) == 1:
|
||||
if should_sell(trade, current_rate, datetime.utcnow()) or get_signal(trade.pair, SignalType.SELL):
|
||||
execute_sell(trade, current_rate)
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue
Block a user