Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

base #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added TA_Lib-0.4.24-pp38-pypy38_pp73-win_amd64.whl
Binary file not shown.
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from distutils.log import debug
import os, csv
import talib
import yfinance as yf
Expand All @@ -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 {
Expand Down Expand Up @@ -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')
Binary file added datasets/.DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
flask
TA-Lib
pandas
yfinance
yfinance
1 change: 1 addition & 0 deletions ta-lib
Submodule ta-lib added at 75fbfa