From e24df7cffc01937a211db2d29f44bccc3d740bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 14 May 2018 08:22:01 +0200 Subject: Fix orders marked as dust even when closed --- portfolio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portfolio.py') diff --git a/portfolio.py b/portfolio.py index 9b27e26..bed4326 100644 --- a/portfolio.py +++ b/portfolio.py @@ -582,7 +582,7 @@ class Order: self.mark_finished_order() def mark_dust_amount_remaining_order(self): - if self.market.ccxt.is_dust_trade(self.remaining_amount().value, self.rate): + if self.status == "open" and self.market.ccxt.is_dust_trade(self.remaining_amount().value, self.rate): self.status = "closed_dust_remaining" def remaining_amount(self, refetch=False): -- cgit v1.2.3