Dmitry Beresnev
commited on
Commit
·
c119a98
1
Parent(s):
803210e
fix data loading
Browse files- app/main.py +4 -4
app/main.py
CHANGED
|
@@ -80,18 +80,18 @@ with st.sidebar:
|
|
| 80 |
|
| 81 |
st.markdown("---")
|
| 82 |
st.markdown("### About")
|
| 83 |
-
st.info("This dashboard provides real-time technical analysis
|
| 84 |
|
| 85 |
if st.button("📊 Load Dashboard", key="load_btn", use_container_width=True):
|
| 86 |
|
| 87 |
try:
|
| 88 |
-
# Load free stock data
|
| 89 |
with st.spinner("Loading data..."):
|
| 90 |
df = sdk.equity.price.historical(symbol=symbol).to_dataframe()
|
| 91 |
|
| 92 |
# Load company profile
|
| 93 |
-
|
| 94 |
-
profile_info =
|
| 95 |
|
| 96 |
# Load income statement
|
| 97 |
income_stmt = sdk.equity.fundamental.income(symbol=symbol).to_dataframe()
|
|
|
|
| 80 |
|
| 81 |
st.markdown("---")
|
| 82 |
st.markdown("### About")
|
| 83 |
+
st.info("This dashboard provides real-time technical analysis with comprehensive financial metrics.")
|
| 84 |
|
| 85 |
if st.button("📊 Load Dashboard", key="load_btn", use_container_width=True):
|
| 86 |
|
| 87 |
try:
|
| 88 |
+
# Load free stock data
|
| 89 |
with st.spinner("Loading data..."):
|
| 90 |
df = sdk.equity.price.historical(symbol=symbol).to_dataframe()
|
| 91 |
|
| 92 |
# Load company profile
|
| 93 |
+
profile_response = sdk.equity.profile(symbol=symbol)
|
| 94 |
+
profile_info = profile_response.results[0] if hasattr(profile_response, 'results') and profile_response.results else None
|
| 95 |
|
| 96 |
# Load income statement
|
| 97 |
income_stmt = sdk.equity.fundamental.income(symbol=symbol).to_dataframe()
|