Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Quant Platform

智能量化研究平台,面向 A 股与港股市场。

版本路线图

版本 模块 状态
V0.1 项目基础(配置/日志/数据库骨架) ✅
V0.2 数据采集(A 股 akshare / 港股 yfinance) ✅
V0.3 数据库存储 + 查询(Repository 模式) ✅
V0.4 技术指标(42 个因子) ✅
V0.5 机器学习(LightGBM / XGBoost) ✅
V0.6 回测系统(策略 / 组合 / 指标) ✅
V0.7 新闻 / RAG / 情绪分析 ✅
V1.0 Streamlit Web 可视化平台 ✅

项目结构

AI_Quant_Platform/
├── config/config.yaml          # 全局配置
├── dashboard/app.py            # Streamlit 看板
├── src/
│   ├── collector/              # V0.2 数据采集
│   ├── database/               # V0.3 数据库
│   ├── indicators/             # V0.4 技术指标
│   ├── ml/                     # V0.5 机器学习
│   ├── backtest/               # V0.6 回测
│   ├── sentiment/              # V0.7 舆情/RAG
│   ├── services/               # 业务服务层
│   └── utils/                  # 工具
├── data/
│   ├── raw/                    # 原始 CSV
│   ├── database/               # SQLite
│   └── models/                 # 训练好的模型
├── tests/
└── main.py                     # CLI 入口

快速开始

# 安装依赖
pip install -r requirements.txt

# 查看项目信息
python main.py info

# 下载 A 股数据并入库
python main.py fetch 600519

# 计算技术指标
python main.py indicators 600519

# 查看 43 个因子名单及最新数值
python main.py factors 600519
python main.py factors --list-only

# 训练 ML 模型
python main.py train 600519 --model LightGBM

# 运行回测
python main.py backtest 600519 --strategy ma

# 新闻情绪分析
python main.py sentiment 600519

# 启动 Web 看板
python main.py dashboard

功能特性

  • 数据采集: A 股 (akshare) + 港股 (yfinance),支持批量下载
  • 数据库: SQLAlchemy + SQLite,Repository 模式 CRUD
  • 技术指标: SMA/EMA/MACD/RSI/布林带/KDJ 等 42 个因子
  • 机器学习: LightGBM / XGBoost 二分类预测
  • 回测: 双均线 / RSI 策略,夏普比率 / 最大回撤等指标
  • 舆情: 新闻采集 + 词典情绪分析 + TF-IDF RAG 问答
  • 看板: Streamlit 8 页可视化界面

About

AI quantitative research platform for A-shares and HK stocks. Features data collection, 42 technical factors, LightGBM prediction, backtesting, and Streamlit dashboard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages