Observed since 20 Oct, 23:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A quantitative trading system development framework for A-share stock market
中文 | English
注意: ClawQuant 是专门为 OpenClaw 定制的量化交易 Skill 框架,推荐通过 OpenClaw 自动安装使用。
ClawQuant 是一个基于 Python 的开源量化交易系统开发框架,专注于 A 股市场。它提供了从数据获取、因子计算、策略回测到交易执行的完整量化交易解决方案。
在 OpenClaw 中添加 Skill 即可自动完成安装:
# OpenClaw 会自动完成以下操作:
# 1. pip install agent-quant
# 2. 安装依赖
# 3. 配置环境
pip install agent-quant
git clone https://github.com/clawquant/agentquant.git
cd agentquant
pip install -e .
Windows:
# 前台运行
start_db_server.bat
# 后台运行
start_db_server.bat --bg
Linux/Mac:
# 添加执行权限
chmod +x start_db_server.sh
# 前台运行
./start_db_server.sh
# 后台运行
./start_db_server.sh --bg
# 查看帮助
python -m agentquant.cli --help
# 更新数据
python -m agentquant.cli update --codes 000001.SZ --date 2024-06-01
# 查询数据
python -m agentquant.cli query --code 000001.SZ --start 2024-01-01 --end 2024-06-01
# 查看可用因子
python -m agentquant.cli factor list
# 策略回测
python -m agentquant.cli strategy backtest CROSS_STRATEGY --codes 000001.SZ --start 2024-01-01 --end 2024-06-01
from agentquant.database.api import StockAPI
# 创建 API 实例
api = StockAPI()
# 获取日线数据
df = api.get_daily('000001.SZ', '2024-01-01', '2024-06-01')
print(df)
# 获取股票列表
stocks = api.get_all_stocks()
print(stocks)
agentquant/
├── database/ # 数据管理模块
│ ├── api.py # 数据访问接口
│ ├── storage/ # 数据存储(DuckDB)
│ ├── updater/ # 数据更新
│ └── source/ # 数据源(QMT)
├── backtest/ # 回测引擎
├── factor/ # 因子库
├── strategy/ # 策略库
├── gui/ # 图形界面
├── utils/ # 工具函数
├── scripts/ # 脚本工具
├── skills/ # AI Skill 接口
├── tests/ # 测试代码
├── cli.py # 命令行工具
├── examples/ # 示例代码
└── docs/ # 文档
QMT (迅投) 是本项目的主要数据源,用于获取 A 股实时行情数据。由于 QMT 不在开源社区,需要用户自行安装:
详细配置请参考 QMT 配置文档
我们欢迎所有形式的贡献,包括但不限于:
请参考 CONTRIBUTING.md 了解详细贡献流程。
本项目采用 MIT 许可证 开源。
本项目仅供学习和研究使用,不构成任何投资建议。使用本项目进行实盘交易的风险由用户自行承担。
感谢以下开源项目的贡献:
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.57 | 11 May 2026 | 13 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f7c0218782b1d2c719d26f39b8e0a84dba0a7d200b4abb259792d19a9c39bd47