Fix "if" condition with "if not" for check if trade is open.
This commit is contained in:
parent
3bcc60333d
commit
706b30f4d2
@ -523,7 +523,7 @@ class FreqtradeBot(object):
|
|||||||
trade.update(order)
|
trade.update(order)
|
||||||
|
|
||||||
# Updating wallets when order is closed
|
# Updating wallets when order is closed
|
||||||
if trade.is_open == False:
|
if not trade.is_open:
|
||||||
self.wallets.update()
|
self.wallets.update()
|
||||||
|
|
||||||
def get_sell_rate(self, pair: str, refresh: bool) -> float:
|
def get_sell_rate(self, pair: str, refresh: bool) -> float:
|
||||||
|
Loading…
Reference in New Issue
Block a user