diff options
-rw-r--r-- | portfolio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/portfolio.py b/portfolio.py index c064249..d8a5465 100644 --- a/portfolio.py +++ b/portfolio.py | |||
@@ -616,7 +616,7 @@ class Order: | |||
616 | self.market.report.log_debug_action("Mark {} as cancelled".format(self)) | 616 | self.market.report.log_debug_action("Mark {} as cancelled".format(self)) |
617 | self.status = "canceled" | 617 | self.status = "canceled" |
618 | return | 618 | return |
619 | if self.open and self.id is not None: | 619 | if (self.status == "closed_dust_remaining" or self.open) and self.id is not None: |
620 | try: | 620 | try: |
621 | self.market.ccxt.cancel_order(self.id) | 621 | self.market.ccxt.cancel_order(self.id) |
622 | except OrderNotFound as e: # Closed inbetween | 622 | except OrderNotFound as e: # Closed inbetween |