A Streamlit-based web application for analyzing stock market data with real-time visualization and historical data caching.
- Real-time stock data visualization
- Technical indicators (Moving Averages)
- Trading volume analysis
- Company information display
- Historical data caching using PostgreSQL
- Interactive charts using Plotly
- Python 3.11
- Streamlit
- SQLAlchemy
- PostgreSQL
- YFinance
- Plotly
- Pandas
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
DATABASE_URL=postgresql://user:password@host:port/dbname
- Initialize the database:
python create_tables.py
- Run the application:
streamlit run main.py
- Enter a stock symbol (e.g., AAPL, GOOGL)
- Select the time period for analysis
- View the interactive price chart with moving averages
- Analyze trading volume patterns
- Review key company statistics
├── .streamlit/
│ └── config.toml
├── utils/
│ ├── __init__.py
│ ├── database.py
│ ├── db_operations.py
│ ├── models.py
│ ├── stock_data.py
│ └── visualization.py
├── create_tables.py
├── main.py
└── requirements.txt
Feel free to open issues and pull requests for any improvements.
MIT