aboutsummaryrefslogtreecommitdiff
path: root/portfolio.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-14 08:22:29 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-14 08:22:29 +0200
commit27bad39d3f2efcec0247b473627088149f462f79 (patch)
tree306e18635e5f36b13641ae9ef8b8be51bdc55ec5 /portfolio.py
parentc3e265216a5e97ec8363bf3c22dcd0539debe77f (diff)
parente24df7cffc01937a211db2d29f44bccc3d740bd5 (diff)
downloadTrader-27bad39d3f2efcec0247b473627088149f462f79.tar.gz
Trader-27bad39d3f2efcec0247b473627088149f462f79.tar.zst
Trader-27bad39d3f2efcec0247b473627088149f462f79.zip
Merge branch 'dev'v1.8.3
Diffstat (limited to 'portfolio.py')
-rw-r--r--portfolio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portfolio.py b/portfolio.py
index 9b27e26..bed4326 100644
--- a/portfolio.py
+++ b/portfolio.py
@@ -582,7 +582,7 @@ class Order:
582 self.mark_finished_order() 582 self.mark_finished_order()
583 583
584 def mark_dust_amount_remaining_order(self): 584 def mark_dust_amount_remaining_order(self):
585 if self.market.ccxt.is_dust_trade(self.remaining_amount().value, self.rate): 585 if self.status == "open" and self.market.ccxt.is_dust_trade(self.remaining_amount().value, self.rate):
586 self.status = "closed_dust_remaining" 586 self.status = "closed_dust_remaining"
587 587
588 def remaining_amount(self, refetch=False): 588 def remaining_amount(self, refetch=False):