A simple web application that calculates the risk score of a given stock based on user-defined parameters. The app uses the Yahoo Finance API to retrieve stock data and provides real-time risk scoring through a user-friendly interface.
- Input Stock Ticker: Enter the stock ticker symbol to analyze.
- Adjustable Risk Holding Period: Use a slider to specify how long you plan to hold the shares, with real-time updates to the risk score.
- Real-time Risk Score Calculation: Instantly see the risk score as you adjust the holding period.
- Tooltips: Hover over the question mark to learn more about how the risk score is calculated.
- Minimalistic Design: A clean and centered layout for a better user experience.
- GitHub Repository Link: View the project's source code at the bottom of the page.
- Backend: Python with Flask
- API: Yahoo Finance API via the
yfinancelibrary - Frontend: HTML, CSS, JavaScript
- Real-time Updates: Fetching risk scores through AJAX calls
- Clone the repository:
git clone https://github.com/sriveey/stock-calc.git cd stock-calc - Install the required Python packages:
pip install Flask yfinance
- Run the Flask app:
python3 app.py
- Open your web browser and go to http://127.0.0.1:8080 to access the application.