This project is a simple Streamlit app that visualizes stock data pulled from a Google Sheet that updates daily using the GOOGLEFINANCE formula.
- Uses Google Sheets as a data source
- Sheet auto-updates daily with formula
=GOOGLEFINANCE("AAPL", "all", TODAY()-14, TODAY(), "DAILY") - Connects to the sheet via Google Sheets API
- Deployed on Streamlit Cloud
- Includes a manual Refresh button to force update
if refresh:
download_data.clear()
transform_data.clear()
st.cache_resource.clear()
st.rerun()View the live dashboard below:
-
Clone the repository
-
Create a
secrets.tomlfile or usest.secretsto store your Google service account credentials -
Install dependencies
pip install -r requirements.txt -
Run the app
streamlit run app.py
Currently deployed on Streamlit Cloud.
- Modularize code (separate data download, transformation, and UI)
- Explore other deployment options such as VPS, Google Cloud VM, or Docker
- Add scheduled refresh using Streamlit Community Cloud or external cronjob
- Add more stock symbols and make selection dynamic