Spaces:
Runtime error
Runtime error
Commit ·
e0c5fdd
1
Parent(s): cef805b
version change
Browse files
__pycache__/ETFs.cpython-38.pyc
ADDED
|
Binary file (3.42 kB). View file
|
|
|
__pycache__/coinbaskets.cpython-38.pyc
ADDED
|
Binary file (1.34 kB). View file
|
|
|
__pycache__/config.cpython-38.pyc
ADDED
|
Binary file (5.78 kB). View file
|
|
|
__pycache__/mapping.cpython-38.pyc
ADDED
|
Binary file (454 kB). View file
|
|
|
__pycache__/patterns.cpython-38.pyc
ADDED
|
Binary file (2.55 kB). View file
|
|
|
app.py
CHANGED
|
@@ -28,11 +28,7 @@ from bs4 import BeautifulSoup
|
|
| 28 |
from ETFs import *
|
| 29 |
from dateutil import tz
|
| 30 |
import os
|
| 31 |
-
|
| 32 |
-
from streamlit.ReportThread import add_report_ctx
|
| 33 |
-
except Exception:
|
| 34 |
-
# Streamlit >= 0.65.0
|
| 35 |
-
from streamlit.report_thread import add_report_ctx
|
| 36 |
|
| 37 |
def get_stocktwits_data(req,code,label):
|
| 38 |
|
|
@@ -514,7 +510,7 @@ else:
|
|
| 514 |
# Get the symbol_mapping and run it in thread and display each of them
|
| 515 |
ticker_tape = list(symbol_mapping.keys())[i]
|
| 516 |
t_ticker = threading.Thread(target = get_symbol_quote, args = (ticker_tape, symbol_mapping[ticker_tape],cols_ticker_tape,i,))
|
| 517 |
-
|
| 518 |
t_ticker.start()
|
| 519 |
thread_ticker.append(t_ticker)
|
| 520 |
for x in thread_ticker:
|
|
@@ -608,7 +604,7 @@ else:
|
|
| 608 |
symbol_name_for_quote = df_watchlist.index[i]
|
| 609 |
x = threading.Thread(target = get_data_symbol,args = (symbol_name_for_quote,))
|
| 610 |
x.start()
|
| 611 |
-
|
| 612 |
threads_list.append(x)
|
| 613 |
for thread in threads_list:
|
| 614 |
thread.join()
|
|
@@ -930,7 +926,7 @@ else:
|
|
| 930 |
for symbol in symbols:
|
| 931 |
t = threading.Thread(target = get_crypto_data_daily, args = (symbol,))
|
| 932 |
t.start()
|
| 933 |
-
|
| 934 |
|
| 935 |
threads.append(t)
|
| 936 |
for x in threads:
|
|
@@ -979,7 +975,7 @@ else:
|
|
| 979 |
threads = []
|
| 980 |
for symbol in symbols:
|
| 981 |
t = threading.Thread(target = in_squeeze, args = (symbol,bb_mul, kc_mul, num_days, True,60*60*24))
|
| 982 |
-
|
| 983 |
t.start()
|
| 984 |
threads.append(t)
|
| 985 |
for x in threads:
|
|
|
|
| 28 |
from ETFs import *
|
| 29 |
from dateutil import tz
|
| 30 |
import os
|
| 31 |
+
from streamlit.script_run_context import add_script_run_ctx
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
def get_stocktwits_data(req,code,label):
|
| 34 |
|
|
|
|
| 510 |
# Get the symbol_mapping and run it in thread and display each of them
|
| 511 |
ticker_tape = list(symbol_mapping.keys())[i]
|
| 512 |
t_ticker = threading.Thread(target = get_symbol_quote, args = (ticker_tape, symbol_mapping[ticker_tape],cols_ticker_tape,i,))
|
| 513 |
+
add_script_run_ctx(t_ticker)
|
| 514 |
t_ticker.start()
|
| 515 |
thread_ticker.append(t_ticker)
|
| 516 |
for x in thread_ticker:
|
|
|
|
| 604 |
symbol_name_for_quote = df_watchlist.index[i]
|
| 605 |
x = threading.Thread(target = get_data_symbol,args = (symbol_name_for_quote,))
|
| 606 |
x.start()
|
| 607 |
+
add_script_run_ctx(x)
|
| 608 |
threads_list.append(x)
|
| 609 |
for thread in threads_list:
|
| 610 |
thread.join()
|
|
|
|
| 926 |
for symbol in symbols:
|
| 927 |
t = threading.Thread(target = get_crypto_data_daily, args = (symbol,))
|
| 928 |
t.start()
|
| 929 |
+
add_script_run_ctx(t)
|
| 930 |
|
| 931 |
threads.append(t)
|
| 932 |
for x in threads:
|
|
|
|
| 975 |
threads = []
|
| 976 |
for symbol in symbols:
|
| 977 |
t = threading.Thread(target = in_squeeze, args = (symbol,bb_mul, kc_mul, num_days, True,60*60*24))
|
| 978 |
+
add_script_run_ctx(t)
|
| 979 |
t.start()
|
| 980 |
threads.append(t)
|
| 981 |
for x in threads:
|
requirements.txt
CHANGED
|
@@ -5,7 +5,7 @@ requests==2.24.0
|
|
| 5 |
numpy==1.21.5
|
| 6 |
tweepy==4.0.1
|
| 7 |
pandas==1.4.0
|
| 8 |
-
streamlit==
|
| 9 |
plotly==5.5.0
|
| 10 |
beautifulsoup4==4.11.1
|
| 11 |
GoogleNews==1.6.4
|
|
|
|
| 5 |
numpy==1.21.5
|
| 6 |
tweepy==4.0.1
|
| 7 |
pandas==1.4.0
|
| 8 |
+
streamlit==0.89.0
|
| 9 |
plotly==5.5.0
|
| 10 |
beautifulsoup4==4.11.1
|
| 11 |
GoogleNews==1.6.4
|