Unified FastAPI portal for:
- Quant stock selection for STAR Market
- Stock prediction service rebuilt from
6main_clean.py - Built-in AI finance assistant
- Activate the existing conda environment:
conda activate finance- Copy
.env.exampleto.envand fill:
MYSQL_HOSTMYSQL_USERMYSQL_PASSWORDMYSQL_DBTUSHARE_TOKENZHIPU_API_KEYif LLM fallback chat is neededMODEL_NAMEif a non-default LLM model is used
- Create the database:
CREATE DATABASE graduation_finance DEFAULT CHARACTER SET utf8mb4;- Start the app:
uvicorn app.main:app --host 127.0.0.1 --port 8001 --reloadOnly the main platform service is required.
//quant/predictor/assistant
- Portal and routing are ready.
- Quant module has STAR Market sync, factor calculation, scoring, model training, and prediction workflow.
- Predictor service and page are available.
- AI assistant is built into the main FastAPI app and uses
/api/assistant/...APIs. - AI assistant is served by the main platform.