Dmitry Beresnev commited on
Commit ·
c119a98
1
Parent(s): 803210e
fix data loading
Browse files79 unmodified lines80818283848586878889909192939495969779 unmodified linesst.markdown("---")st.markdown("### About")st.info("This dashboard provides real-time technical analysis using OpenBB data.")if st.button("📊 Load Dashboard", key="load_btn", use_container_width=True):try:# Load free stock data via OpenBBwith st.spinner("Loading data..."):df = sdk.equity.price.historical(symbol=symbol).to_dataframe()# Load company profileprofile_data = sdk.equity.profile(symbol=symbol)profile_info = profile_data[0] if profile_data else None# Load income statementincome_stmt = sdk.equity.fundamental.income(symbol=symbol).to_dataframe()79 unmodified lines80818283848586878889909192939495969779 unmodified linesst.markdown("---")st.markdown("### About")st.info("This dashboard provides real-time technical analysis with comprehensive financial metrics.")if st.button("📊 Load Dashboard", key="load_btn", use_container_width=True):try:# Load free stock datawith st.spinner("Loading data..."):df = sdk.equity.price.historical(symbol=symbol).to_dataframe()# Load company profileprofile_response = sdk.equity.profile(symbol=symbol)profile_info = profile_response.results[0] if hasattr(profile_response, 'results') and profile_response.results else None# Load income statementincome_stmt = sdk.equity.fundamental.income(symbol=symbol).to_dataframe()
app/main.py+4-4