diff options
| author | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 01:11:29 -0700 |
|---|---|---|
| committer | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 01:11:29 -0700 |
| commit | 5f3dd9a00706257758838d15f678773e5a2d7a13 (patch) | |
| tree | 4a88953a5014963f5110944f629551845f7944a4 /app.py | |
| parent | 9c681a2292b4ab7ca9d8975889fe78b6bf4e0305 (diff) | |
| parent | 722ab4f3e3ba895879191e2be3c5361fb755a786 (diff) | |
Merge branch 'feature/macro-tab'
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -604,6 +604,7 @@ from components.insiders import render_insiders from components.filings import render_filings from components.news import render_news from components.options import render_options +from components.macro import render_macro from services.data_service import get_company_info, search_tickers, get_latest_price import streamlit.components.v1 as components @@ -739,6 +740,7 @@ with st.sidebar: ("insiders", "○ Insiders"), ("filings", "▤ Filings"), ("news", "◉ News"), + ("macro", "⬡ Macro"), ] for _tab_id, _tab_label in _nav: _is_active = st.session_state["active_tab"] == _tab_id @@ -781,6 +783,13 @@ st.divider() # ── Main Content ────────────────────────────────────────────────────────────── +if st.session_state["active_tab"] == "macro": + try: + render_macro() + except Exception as e: + st.error(f"Macro data failed to load: {e}") + st.stop() + if not ticker: _watchlist = st.session_state.get("watchlist", []) if _watchlist: |
