diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..ad72415a Binary files /dev/null and b/.DS_Store differ diff --git a/TA_Lib-0.4.24-pp38-pypy38_pp73-win_amd64.whl b/TA_Lib-0.4.24-pp38-pypy38_pp73-win_amd64.whl new file mode 100644 index 00000000..27121b5d Binary files /dev/null and b/TA_Lib-0.4.24-pp38-pypy38_pp73-win_amd64.whl differ diff --git a/app.py b/app.py index bb2a1b7c..e6eda56a 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,4 @@ +from distutils.log import debug import os, csv import talib import yfinance as yf @@ -14,7 +15,7 @@ def snapshot(): if "," not in line: continue symbol = line.split(",")[0] - data = yf.download(symbol, start="2020-01-01", end="2020-08-01") + data = yf.download(symbol, start="2020-01-01", end="2022-28-02") data.to_csv('datasets/daily/{}.csv'.format(symbol)) return { @@ -50,3 +51,7 @@ def index(): print('failed on filename: ', filename) return render_template('index.html', candlestick_patterns=candlestick_patterns, stocks=stocks, pattern=pattern) + + +if __name__ == '__main__': + app.run( debug=True,host= '0.0.0.0', port ='5004') \ No newline at end of file diff --git a/datasets/.DS_Store b/datasets/.DS_Store new file mode 100644 index 00000000..244f6b6b Binary files /dev/null and b/datasets/.DS_Store differ diff --git a/requirements.txt b/requirements.txt index 6b4a8119..1ee284e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ flask -TA-Lib pandas -yfinance \ No newline at end of file +yfinance diff --git a/ta-lib b/ta-lib new file mode 160000 index 00000000..75fbfa86 --- /dev/null +++ b/ta-lib @@ -0,0 +1 @@ +Subproject commit 75fbfa86824b675ac03b7e30aaa2eaade8a817cc