From eecc45f8ba8baae71fc4902a09d221dd40b22102 Mon Sep 17 00:00:00 2001 From: xsmile Date: Wed, 11 Oct 2017 20:04:31 +0200 Subject: [PATCH] set exchange in analyze.__main__ to fix plotting requires #64 --- freqtrade/analyze.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 159e1d137..f4f6d0077 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -6,7 +6,8 @@ import arrow import talib.abstract as ta from pandas import DataFrame -from freqtrade.exchange import get_ticker_history +from freqtrade import exchange +from freqtrade.exchange import Bittrex, get_ticker_history logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') @@ -143,6 +144,7 @@ def plot_dataframe(dataframe: DataFrame, pair: str) -> None: if __name__ == '__main__': # Install PYQT5==5.9 manually if you want to test this helper function while True: + exchange.EXCHANGE = Bittrex({'key': '', 'secret': ''}) test_pair = 'BTC_ETH' # for pair in ['BTC_ANT', 'BTC_ETH', 'BTC_GNT', 'BTC_ETC']: # get_buy_signal(pair)