This application provides price predictions for stocks listed on Borsa Istanbul (BIST). Using machine learning models and sentiment analysis, it offers future price predictions and investment recommendations for selected stocks.
- Price predictions for BIST stocks
- Graphical representation based on historical price data
- News sentiment scores through sentiment analysis
- User-friendly web interface
- Multiple stock selection and analysis
-
Clone the repository:
git clone https://github.com/your-username/bist-stock-prediction.git cd bist-stock-prediction
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
-
Install required packages:
pip install -r requirements.txt
-
Create a
.env
file and add your News API key:NEWS_API_KEY=your_news_api_key_here
-
Start the application:
python app.py
-
Navigate to
http://localhost:8080
in your browser. -
Select the stocks you wish to analyze from the interface.
-
Click the "Predict" button to view the results.
app.py
: Main application file, Flask server, and prediction logicutils/sentiment_analysis.py
: Sentiment analysis functionstemplates/index.html
: Web interface templaterequirements.txt
: Required Python packages
- Python
- Flask
- yfinance
- scikit-learn
- plotly
- TextBlob
- News API
We welcome contributions! Please open an issue to discuss your changes before submitting a pull request.
This project is licensed under the MIT License. See the LICENSE
file for more information.