aboutsummaryrefslogtreecommitdiff
path: root/portfolio.py
diff options
context:
space:
mode:
Diffstat (limited to 'portfolio.py')
-rw-r--r--portfolio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/portfolio.py b/portfolio.py
index 43a39c4..0797de0 100644
--- a/portfolio.py
+++ b/portfolio.py
@@ -3,7 +3,7 @@ from datetime import datetime, timedelta
3from decimal import Decimal as D, ROUND_DOWN 3from decimal import Decimal as D, ROUND_DOWN
4from json import JSONDecodeError 4from json import JSONDecodeError
5from simplejson.errors import JSONDecodeError as SimpleJSONDecodeError 5from simplejson.errors import JSONDecodeError as SimpleJSONDecodeError
6from ccxt import ExchangeError, ExchangeNotAvailable 6from ccxt import ExchangeError, ExchangeNotAvailable, InvalidOrder
7import requests 7import requests
8 8
9# FIXME: correctly handle web call timeouts 9# FIXME: correctly handle web call timeouts
@@ -532,7 +532,7 @@ class Order:
532 else: 532 else:
533 try: 533 try:
534 self.results.append(self.market.ccxt.create_order(symbol, 'limit', self.action, amount, price=self.rate, account=self.account)) 534 self.results.append(self.market.ccxt.create_order(symbol, 'limit', self.action, amount, price=self.rate, account=self.account))
535 except ExchangeNotAvailable: 535 except (ExchangeNotAvailable, InvalidOrder):
536 # Impossible to honor the order (dust amount) 536 # Impossible to honor the order (dust amount)
537 self.status = "closed" 537 self.status = "closed"
538 self.mark_finished_order() 538 self.mark_finished_order()