From eb4ac73b78971fd08dc99a5a8f629749f909b903 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Thu, 22 Mar 2018 08:29:52 +0200 Subject: [PATCH] remove last bittrex references so that bot is runnable --- freqtrade/exchange/__init__.py | 1 - freqtrade/optimize/backtesting.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index cdc393d35..1b1d2f7aa 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -11,7 +11,6 @@ import arrow import requests from freqtrade import OperationalException -from freqtrade.exchange.interface import Exchange logger = logging.getLogger(__name__) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index d8af47326..6202edead 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -11,11 +11,12 @@ from pandas import DataFrame, Series from tabulate import tabulate import freqtrade.optimize as optimize +import freqtrade.exchange as exchange from freqtrade import exchange from freqtrade.analyze import Analyze from freqtrade.arguments import Arguments from freqtrade.configuration import Configuration -from freqtrade.exchange import Bittrex + from freqtrade.logger import Logger from freqtrade.misc import file_dump_json from freqtrade.persistence import Trade @@ -52,7 +53,7 @@ class Backtesting(object): self.tickerdata_to_dataframe = self.analyze.tickerdata_to_dataframe self.populate_buy_trend = self.analyze.populate_buy_trend self.populate_sell_trend = self.analyze.populate_sell_trend - exchange._API = Bittrex({'key': '', 'secret': ''}) + exchange.init({'key': '', 'secret': ''}) @staticmethod def get_timeframe(data: Dict[str, DataFrame]) -> Tuple[arrow.Arrow, arrow.Arrow]: