一个功能完整的福纹量化交易系统,支持多交易所连接、策略回测与实盘交易
Project description
FWQuant
一个从 0 到 1 完全自建的量化交易平台。
📋 项目概述:FWQuant 是一款企业级量化交易系统,支持 CTP 期货网关和 OKX 数字资产交易,提供策略开发、回测验证、实盘交易、风险管理的完整链路。采用事件驱动架构,内置多种经典策略模板,支持单/多策略并行回测,具备完善的风控体系。
快速开始
安装
uv pip install fwquant -U
启动
fwquant web run
后台运行
# 后台启动服务(无窗口)
fwquant web start
# 查看服务状态
fwquant web status
开机启动
# 安装开机启动服务(需要管理员权限)
fwquant service install
# 卸载开机启动服务(需要管理员权限)
fwquant service uninstall
# 查看开机启动服务状态
fwquant service status
⚡ 核心功能
| 模块类别 | 核心能力 | 说明 |
|---|---|---|
| 交易网关 | CTP / OKX | 支持期货、数字资产实盘交易 |
| 策略引擎 | CTA策略框架 | 内置6+经典策略模板 |
| 回测系统 | 单/多策略并行 | 支持历史数据回测验证 |
| 风险管理 | 实时风控引擎 | 仓位/止损/熔断管理 |
| 数据管理 | REST/WebSocket | 实时行情与历史数据 |
📖 文档入口
| 类别 | 文档名称 | 路径 |
|---|---|---|
| 用户指南 | 📦 安装指南 | docs/用户安装.md |
| 🚀 运行服务 | docs/运行服务.md | |
| 💡 帮助文档 | docs/help.md | |
| 程序开发 | 📦 上传打包 | docs/上传打包_pypi.md |
| 📝 开发日志 | docs/开发日志.md | |
| 📚 模块文档 | docs/module_docs/ | |
| 综合运维 | 🔧 运维手册 | docs/运维手册.md |
📦 内置策略(点击展开)
- 趋势策略: Dual Thrust、Double MA、King Keltner
- 震荡策略: ATR-RSI、Boll Channel
- 组合策略: 七福策略(多规则融合)
🛠️ 技术架构(点击展开)
- 语言: Python 3.12+
- 框架: FastAPI + PyQt5
- 数据库: SQLite
- 网关: CTP / OKX API
- 计算: Pandas / NumPy / TA-Lib
📚 参考工具(点击展开)
- VN.PY: 量化交易框架设计灵感来源
- backtrader: 量化回测框架参考
- crewAI: AI 智能体协作框架
- LangChain: 大语言模型应用框架
- ccxt: 交易网关库
其它工具
工具库
python fuwen_tools/tools_menu.py
致谢:感谢 VN.PY、backtrader、crewAI、LangChain 及所有开源社区的贡献!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fwquant-1.0.54.tar.gz
(408.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fwquant-1.0.54-py3-none-any.whl
(496.2 kB
view details)
File details
Details for the file fwquant-1.0.54.tar.gz.
File metadata
- Download URL: fwquant-1.0.54.tar.gz
- Upload date:
- Size: 408.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed9ec322c4be1f8d0f646a5bf5f88a0615b6a921f642f33d0c05b771bae2735
|
|
| MD5 |
9acea2cfa473fbb8976b52018444ddc7
|
|
| BLAKE2b-256 |
5a61f00e97af4a6c49a0911a12e5695b867cd806e4139733ad37499bde5f6640
|
File details
Details for the file fwquant-1.0.54-py3-none-any.whl.
File metadata
- Download URL: fwquant-1.0.54-py3-none-any.whl
- Upload date:
- Size: 496.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fba4849ec27ec401d417730c4d32ddb61d65135ce8c9f5b0b3a6062c3951c37
|
|
| MD5 |
0d50459780aa55a763ab04a463f88911
|
|
| BLAKE2b-256 |
0760406ab541c0f8c7415f381015f29ddac77a1f76b8aa5abb20a51c8ddc8936
|