aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-22 14:04:39 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-22 14:17:27 +0200
commitfcb18fead0e92ddc075416e11934b62afa3e2ba3 (patch)
treef6f7ae4c271cfcea9dff017f0e8cf3fd5027fd5f
parent96959ceaa9dd53421b752ae3a4dfe12d237866a6 (diff)
downloadTrader-fcb18fead0e92ddc075416e11934b62afa3e2ba3.tar.gz
Trader-fcb18fead0e92ddc075416e11934b62afa3e2ba3.tar.zst
Trader-fcb18fead0e92ddc075416e11934b62afa3e2ba3.zip
Remove fixed FIXME
-rw-r--r--portfolio.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/portfolio.py b/portfolio.py
index 1067b0b..c313fd9 100644
--- a/portfolio.py
+++ b/portfolio.py
@@ -320,8 +320,6 @@ class Trade:
320 ticker = ticker["original"] 320 ticker = ticker["original"]
321 rate = Computation.compute_value(ticker, self.order_action(), compute_value=compute_value) 321 rate = Computation.compute_value(ticker, self.order_action(), compute_value=compute_value)
322 322
323 # FIXME: Dust amount should be removed from there if they werent
324 # honored in other sales
325 delta_in_base = abs(self.delta) 323 delta_in_base = abs(self.delta)
326 # 9 BTC's worth of move (10 - 1 or 1 - 10 depending on case) 324 # 9 BTC's worth of move (10 - 1 or 1 - 10 depending on case)
327 325
@@ -650,7 +648,6 @@ class Order:
650 return True 648 return True
651 649
652 similar_trades = self.market.ccxt.fetch_my_trades(symbol=symbol, since=start_timestamp) 650 similar_trades = self.market.ccxt.fetch_my_trades(symbol=symbol, since=start_timestamp)
653 # FIXME: use set instead of sorted(list(...))
654 for order_id in sorted(list(map(lambda x: x["order"], similar_trades))): 651 for order_id in sorted(list(map(lambda x: x["order"], similar_trades))):
655 trades = list(filter(lambda x: x["order"] == order_id, similar_trades)) 652 trades = list(filter(lambda x: x["order"] == order_id, similar_trades))
656 if any(x["timestamp"] < start_timestamp for x in trades): 653 if any(x["timestamp"] < start_timestamp for x in trades):