From 6288adfefd78bd6f23bfcafe8ebc3bd44d02c177 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 17 Dec 2017 14:14:57 +0200 Subject: [PATCH] fix plotting broken by refactoring --- scripts/plot_dataframe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index eeabda007..0890a650e 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -16,7 +16,8 @@ def plot_analyzed_dataframe(pair: str) -> None: # Init Bittrex to use public API exchange._API = exchange.Bittrex({'key': '', 'secret': ''}) - dataframe = analyze.analyze_ticker(pair) + ticker = exchange.get_ticker_history(pair) + dataframe = analyze.analyze_ticker(ticker) dataframe.loc[dataframe['buy'] == 1, 'buy_price'] = dataframe['close'] dataframe.loc[dataframe['sell'] == 1, 'sell_price'] = dataframe['close']