From b2f4778352a2419be7c86a9e288593892d68a4d2 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Fri, 29 Sep 2017 09:37:05 +0300 Subject: [PATCH 1/2] show last 24hours in analyze graph --- analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.py b/analyze.py index f344f047a..9c0f4bc11 100644 --- a/analyze.py +++ b/analyze.py @@ -93,7 +93,7 @@ def analyze_ticker(pair: str) -> DataFrame: add several TA indicators and buy signal to it :return DataFrame with ticker data and indicator data """ - minimum_date = arrow.utcnow().shift(hours=-6) + minimum_date = arrow.utcnow().shift(hours=-24) data = get_ticker(pair, minimum_date) dataframe = parse_ticker_dataframe(data['result'], minimum_date) From b97f0f07058109504ef0dd1384be68708d6ecd20 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Fri, 29 Sep 2017 09:37:29 +0300 Subject: [PATCH 2/2] use btc-eth as default pair for analyze graph --- analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.py b/analyze.py index 9c0f4bc11..774a900f9 100644 --- a/analyze.py +++ b/analyze.py @@ -165,7 +165,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: - test_pair = 'BTC_ANT' + test_pair = 'BTC_ETH' #for pair in ['BTC_ANT', 'BTC_ETH', 'BTC_GNT', 'BTC_ETC']: # get_buy_signal(pair) plot_dataframe(analyze_ticker(test_pair), test_pair)