Spaces:
Running
Running
Update app/yahooinfo.py
Browse files- app/yahooinfo.py +4 -8
app/yahooinfo.py
CHANGED
|
@@ -58,8 +58,6 @@ PRICE_VOLUME_GROUPS = {
|
|
| 58 |
"VWAP & Gap": ["VWAP","dailyGapPercent"]
|
| 59 |
}
|
| 60 |
|
| 61 |
-
PIN_PRICE = ["Price","Chg","Chg%","Prev","Open"]
|
| 62 |
-
|
| 63 |
# ==============================
|
| 64 |
# Noise keys
|
| 65 |
# ==============================
|
|
@@ -293,25 +291,23 @@ def fetch_info(symbol):
|
|
| 293 |
html=""
|
| 294 |
# Price / Volume
|
| 295 |
pv=resolve_duplicates(groups["price_volume"])
|
| 296 |
-
if pv: html+=html_card(f"{MAIN_ICONS['Price / Volume']} Price / Volume",build_price_volume_section(info,pv)
|
| 297 |
# Fundamentals
|
| 298 |
if groups["fundamental"]:
|
| 299 |
df=build_df_from_dict(groups["fundamental"])
|
| 300 |
html+=html_card(f"{MAIN_ICONS['Fundamentals']} Fundamentals",
|
| 301 |
-
column_layout("".join(html_card("Fundamentals",make_table(c),mini=True) for c in split_df(df)))
|
| 302 |
-
shade=1)
|
| 303 |
# Company Profile
|
| 304 |
if groups["profile"]:
|
| 305 |
df=build_df_from_dict(groups["profile"])
|
| 306 |
html+=html_card(f"{MAIN_ICONS['Company Profile']} Company Profile",
|
| 307 |
-
column_layout("".join(html_card("Profile",make_table(c),mini=True) for c in split_df(df)))
|
| 308 |
-
shade=2)
|
| 309 |
# Management
|
| 310 |
if groups["management"].get("companyOfficers"):
|
| 311 |
cards=""
|
| 312 |
for o in groups["management"]["companyOfficers"]:
|
| 313 |
cards+=html_card(o.get("name",""),o.get("title",""),mini=True)
|
| 314 |
-
html+=html_card(f"{MAIN_ICONS['Management']} Management",column_layout(cards)
|
| 315 |
# Long Text
|
| 316 |
for k,v in groups["long_text"].items():
|
| 317 |
html+=html_card(SHORT_NAMES.get(k,k[:16]),v)
|
|
|
|
| 58 |
"VWAP & Gap": ["VWAP","dailyGapPercent"]
|
| 59 |
}
|
| 60 |
|
|
|
|
|
|
|
| 61 |
# ==============================
|
| 62 |
# Noise keys
|
| 63 |
# ==============================
|
|
|
|
| 291 |
html=""
|
| 292 |
# Price / Volume
|
| 293 |
pv=resolve_duplicates(groups["price_volume"])
|
| 294 |
+
if pv: html+=html_card(f"{MAIN_ICONS['Price / Volume']} Price / Volume",build_price_volume_section(info,pv))
|
| 295 |
# Fundamentals
|
| 296 |
if groups["fundamental"]:
|
| 297 |
df=build_df_from_dict(groups["fundamental"])
|
| 298 |
html+=html_card(f"{MAIN_ICONS['Fundamentals']} Fundamentals",
|
| 299 |
+
column_layout("".join(html_card("Fundamentals",make_table(c),mini=True) for c in split_df(df))))
|
|
|
|
| 300 |
# Company Profile
|
| 301 |
if groups["profile"]:
|
| 302 |
df=build_df_from_dict(groups["profile"])
|
| 303 |
html+=html_card(f"{MAIN_ICONS['Company Profile']} Company Profile",
|
| 304 |
+
column_layout("".join(html_card("Profile",make_table(c),mini=True) for c in split_df(df))))
|
|
|
|
| 305 |
# Management
|
| 306 |
if groups["management"].get("companyOfficers"):
|
| 307 |
cards=""
|
| 308 |
for o in groups["management"]["companyOfficers"]:
|
| 309 |
cards+=html_card(o.get("name",""),o.get("title",""),mini=True)
|
| 310 |
+
html+=html_card(f"{MAIN_ICONS['Management']} Management",column_layout(cards))
|
| 311 |
# Long Text
|
| 312 |
for k,v in groups["long_text"].items():
|
| 313 |
html+=html_card(SHORT_NAMES.get(k,k[:16]),v)
|