From 1f79ca953975a3f54499ef697c80f0e260e1a5c5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 27 Aug 2019 07:13:32 +0200 Subject: [PATCH] Remove duplicate check --- freqtrade/exchange/exchange.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 50fdd33fc..4c384e0bd 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -797,9 +797,6 @@ class Exchange: try: if self._trades_pagination == 'time': raise OperationalException(f"Wrong method called to get trades for {self.name}") - i if not self.exchange_has("fetchTrades"): - # TODO: Maybe don't completey stop the bot ... ? - raise OperationalException("This exchange does not suport downloading Trades.") trades: List[Dict] = [] @@ -843,7 +840,8 @@ class Exchange: since: Optional[int] = None, until: Optional[int] = None) -> Tuple[str, List]: """ - Asyncronously gets trade history using fetch_trades. + Asyncronously gets trade history using fetch_trades, + when the exchange uses time-based iteration :param pair: Pair to fetch trade data for :param since: Since as integer timestamp in milliseconds :param until: Until as integer timestamp in milliseconds @@ -851,9 +849,6 @@ class Exchange: """ if self._trades_pagination != 'time': raise OperationalException(f"Wrong method called to get trades for {self.name}") - if not self.exchange_has("fetchTrades"): - # TODO: Maybe don't completey stop the bot ... ? - raise OperationalException("This exchange does not suport downloading Trades.") try: trades: List[Dict] = []