From: Ismaƫl Bouya Date: Tue, 1 May 2018 14:13:46 +0000 (+0200) Subject: Actually close closed dust remaining at the end X-Git-Tag: v1.5^2~1 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=commitdiff_plain;h=37b64a97021220df0bee5fd927184b92b10e8d76 Actually close closed dust remaining at the end --- diff --git a/portfolio.py b/portfolio.py index c064249..d8a5465 100644 --- a/portfolio.py +++ b/portfolio.py @@ -616,7 +616,7 @@ class Order: self.market.report.log_debug_action("Mark {} as cancelled".format(self)) self.status = "canceled" return - if self.open and self.id is not None: + if (self.status == "closed_dust_remaining" or self.open) and self.id is not None: try: self.market.ccxt.cancel_order(self.id) except OrderNotFound as e: # Closed inbetween