Skip to content

kuaiquchifan/StockPredictPlatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StockPredictPlatform

Project Description

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.

Technologies Used

  • Frontend: Vite, Vue.js 3, Quasar Framework
  • Backend: FastAPI
  • Database: PostgreSQL

Features

  • Real-time stock data acquisition
  • Machine learning price forecasting
  • Data visualization presentation
  • Historical data analysis

Prerequisites

  • Node.js 22.15.1 LTS or later
  • Python 3.11 or later
  • PostgreSQL 17.4 or later

Setup and Installation

Frontend (myclient)

1. Initialize frontend dependency

cd myclient
npm install
npm run dev

2. Initialize backend dependency

- On windows:
cd myserver

python -m venv .venv

./.venv/Scripts/activate`

pip install -r requirements.txt

3 Initialize backend database and data sheet

python scripts/init_db.py

4. Initialize backend dataset

4.1 collect data from yFinance API

python scripts/collect_data.py

4.2 clean collected data

python scripts/clean_data_2.py

4.3 split cleaned data

python scripts/split_data.py

4.4 normalized the splited train data

python scripts/normalized_train_data_2.py

4.5 normalized the splited validation and backtest data

python scripts/normalize_val_backtest_data_2.py

5. Start web application command

fastapi run –reload .\app\main.py

or

uvicorn app.main:app --reload

License

This project is open source and available under the Apache 2.0 License.

Authors and Acknowledgments

Author: Junliang Li
Email: [email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published