This project aims to assist investors by performing fundamental and technical analysis of stocks traded on the Borsa Istanbul (BIST). It also sends email alerts when user-defined price levels are reached.
This system is a web application developed using Streamlit. Users can add stocks they want to track, set alert preferences, optimize their portfolios, and view detailed analysis results of the stocks.
-
Clone this repository from GitHub:
git clone [https://github.com/your_username/your_repository_name.git](https://www.google.com/search?q=https://github.com/your_username/your_repository_name.git)
-
Navigate to the project directory:
cd your_repository_name
-
Install the required libraries:
pip install -r requirements.txt
-
Create a
.env
file and enter your database credentials:MYSQL_USER=your_username MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_database_name MYSQL_HOST=localhost:3306
-
Create the
prices
table in your MySQL database. You can do this by running thecreate_table.py
file:python create_table.py
-
To start live price tracking and alert checking, run the following commands in separate terminals:
python live_price_tracker.py python alert_checker.py
-
To start the Streamlit application, run the following command:
streamlit run my_app.py
-
The application will automatically open in your web browser.
- Add/Remove Stocks: You can add or remove stocks you want to track.
- Alert Settings: You can set price levels at which you want to receive email alerts.
- Live Price Tracking: You can view the live prices of the stocks you have selected.
- Portfolio Optimization: You can optimize your portfolio to balance risk and return.
- Stock Analysis: You can view detailed fundamental and technical analysis results for the stocks.
- Python 3.7 or higher
- Required libraries (listed in
requirements.txt
) - MySQL database