MyStockPredict is a Smart Stock Price Viewing and Prediction Platform based on Vue 3 and FastAPI. This project combines modern front-end technologies with a robust back-end to provide real-time stock data analysis and machine learning-based price forecasting.
- Frontend: Vite, Vue.js 3, Quasar Framework
- Backend: FastAPI
- Database: PostgreSQL
- Real-time stock data acquisition
- Machine learning price forecasting
- Data visualization presentation
- Historical data analysis
- Node.js 22.15.1 LTS or later
- Python 3.11 or later
- PostgreSQL 17.4 or later
cd myclient
npm install
npm run dev- On windows:
cd myserver
python -m venv .venv
./.venv/Scripts/activate`
pip install -r requirements.txtpython scripts/init_db.py4.1 collect data from yFinance API
python scripts/collect_data.py4.2 clean collected data
python scripts/clean_data_2.py4.3 split cleaned data
python scripts/split_data.py4.4 normalized the splited train data
python scripts/normalized_train_data_2.py4.5 normalized the splited validation and backtest data
python scripts/normalize_val_backtest_data_2.pyfastapi run –reload .\app\main.pyor
uvicorn app.main:app --reloadThis project is open source and available under the Apache 2.0 License.
Author: Junliang Li
Email: [email protected]