From: Ismaƫl Bouya Date: Sun, 22 Apr 2018 12:04:39 +0000 (+0200) Subject: Remove fixed FIXME X-Git-Tag: v1.5^2~4 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=commitdiff_plain;h=fcb18fead0e92ddc075416e11934b62afa3e2ba3 Remove fixed FIXME --- diff --git a/portfolio.py b/portfolio.py index 1067b0b..c313fd9 100644 --- a/portfolio.py +++ b/portfolio.py @@ -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):