ProStock

A股量化投资框架

快速开始

安装依赖

⚠️ 本项目强制使用 uv 作为 Python 包管理器,禁止直接使用 pythonpip 命令。

# 使用 uv 安装(必须)
uv pip install -e .

数据同步

# 增量同步(自动从最新日期开始)
uv run python -c "from src.data.sync import sync_all; sync_all()"

# 全量同步(从 20180101 开始)
uv run python -c "from src.data.sync import sync_all; sync_all(force_full=True)"

# 自定义线程数
uv run python -c "from src.data.sync import sync_all; sync_all(max_workers=20)"

文档

模块

  • data/ - 数据获取
  • factors/ - 因子生成
  • models/ - 模型训练
  • backtest/ - 回测分析
  • utils/ - 工具函数
  • scripts/ - 运行脚本
Description
No description provided
Readme 4.5 MiB
Languages
Python 88.9%
Jupyter Notebook 11.1%