X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=portfolio.py;h=bed43261d70d127c1e4aca08b5b3baf9e9bbdfef;hb=e24df7cffc01937a211db2d29f44bccc3d740bd5;hp=9b27e261d0bfa93ab511e2c692cfc10f3ecd61f8;hpb=e45c64a5ace2637a9ff290a42cde89e2403ae53d;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git 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):