Spaces:
Runtime error
Runtime error
Commit ·
b59e722
1
Parent(s): 3ede72b
changsadfasdfasdf
Browse files
app.py
CHANGED
|
@@ -1060,14 +1060,20 @@ else:
|
|
| 1060 |
num = count%2
|
| 1061 |
if num == 0:
|
| 1062 |
with cols1:
|
| 1063 |
-
|
|
|
|
|
|
|
|
|
|
| 1064 |
if tf == "d":
|
| 1065 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&ta=1&p={tf}")
|
| 1066 |
else:
|
| 1067 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&p={tf}")
|
| 1068 |
else:
|
| 1069 |
with cols2:
|
| 1070 |
-
|
|
|
|
|
|
|
|
|
|
| 1071 |
if tf == "d":
|
| 1072 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&ta=1&p={tf}")
|
| 1073 |
else:
|
|
@@ -1075,7 +1081,10 @@ else:
|
|
| 1075 |
count = count + 1
|
| 1076 |
else:
|
| 1077 |
for i in range(len(etf_names)):
|
| 1078 |
-
|
|
|
|
|
|
|
|
|
|
| 1079 |
if tf == "d":
|
| 1080 |
st.image(f"https://finviz.com/chart.ashx?t={etf_names[i]}&ta=1&p={tf}")
|
| 1081 |
else:
|
|
|
|
| 1060 |
num = count%2
|
| 1061 |
if num == 0:
|
| 1062 |
with cols1:
|
| 1063 |
+
try:
|
| 1064 |
+
st.write(f"{etf[selectETF][etf_name]}, IV = {vol_etf_info[etf_name]}, ER = {expense_ratios[etf_name]}")
|
| 1065 |
+
except:
|
| 1066 |
+
pass
|
| 1067 |
if tf == "d":
|
| 1068 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&ta=1&p={tf}")
|
| 1069 |
else:
|
| 1070 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&p={tf}")
|
| 1071 |
else:
|
| 1072 |
with cols2:
|
| 1073 |
+
try:
|
| 1074 |
+
st.write(f"{etf[selectETF][etf_name]}, IV = {vol_etf_info[etf_name]}, ER = {expense_ratios[etf_name]}")
|
| 1075 |
+
except:
|
| 1076 |
+
pass
|
| 1077 |
if tf == "d":
|
| 1078 |
st.image(f"https://finviz.com/chart.ashx?t={etf_name}&ta=1&p={tf}")
|
| 1079 |
else:
|
|
|
|
| 1081 |
count = count + 1
|
| 1082 |
else:
|
| 1083 |
for i in range(len(etf_names)):
|
| 1084 |
+
try:
|
| 1085 |
+
st.write(f"{country_names[i]}, IV = {vol_etf_info[etf_names[i]]}, ER = {expense_ratios[etf_names[i]]}")
|
| 1086 |
+
except:
|
| 1087 |
+
pass
|
| 1088 |
if tf == "d":
|
| 1089 |
st.image(f"https://finviz.com/chart.ashx?t={etf_names[i]}&ta=1&p={tf}")
|
| 1090 |
else:
|