]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/commitdiff
Remove fixed FIXME
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 22 Apr 2018 12:04:39 +0000 (14:04 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 22 Apr 2018 12:17:27 +0000 (14:17 +0200)
portfolio.py

index 1067b0b0e50084283efe3c7d61477312ae9336d8..c313fd9067cae8e5624620b7a237001ce48082a4 100644 (file)
@@ -320,8 +320,6 @@ class Trade:
             ticker = ticker["original"]
         rate = Computation.compute_value(ticker, self.order_action(), compute_value=compute_value)
 
-        # FIXME: Dust amount should be removed from there if they werent
-        # honored in other sales
         delta_in_base = abs(self.delta)
         # 9 BTC's worth of move (10 - 1 or 1 - 10 depending on case)
 
@@ -650,7 +648,6 @@ class Order:
             return True
 
         similar_trades = self.market.ccxt.fetch_my_trades(symbol=symbol, since=start_timestamp)
-        # FIXME: use set instead of sorted(list(...))
         for order_id in sorted(list(map(lambda x: x["order"], similar_trades))):
             trades = list(filter(lambda x: x["order"] == order_id, similar_trades))
             if any(x["timestamp"] < start_timestamp for x in trades):