TXQuant
TXQuant 是一个用于量化交易的Python库,提供数据处理、策略回测和实时交易等功能。
功能特性
- 📊 数据处理
- 支持多种数据格式的导入导出
- 提供数据清洗和预处理工具
- 内置常用技术指标计算
- 📈 策略回测
- 支持多周期回测
- 提供详细的回测报告
- 支持自定义交易成本
- 🔄 实时交易
- 支持多交易所接入
- 提供风险控制模块
- 实时监控和预警
安装
pip install txquant
快速开始
import txquant as tx
# 加载数据
data = tx.load_data("your_data.csv")
# 计算收益率
returns = tx.calculate_returns(data['close'])
# 更多示例代码将在这里展示
文档
详细的文档请访问:文档链接
开发环境设置
- 克隆仓库
git clone https://github.com/yourusername/txquant.git
cd txquant
- 创建虚拟环境
python -m venv venv
source venv/bin/activate # Linux/Mac
# 或
.\venv\Scripts\activate # Windows
- 安装依赖
pip install -r requirements.txt
- 运行测试
pytest tests/
贡献指南
- Fork 本仓库
- 创建您的特性分支 (
git checkout -b feature/AmazingFeature) - 提交您的更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 开启一个 Pull Request
版本日志
v0.1.0 (2024-03-xx)
- 🎉 首次发布
- ✨ 基础功能实现
- 添加数据处理模块
- 实现基础收益率计算
- 添加单元测试
即将发布
- 🔜 策略回测模块
- 🔜 实时交易接口
- 🔜 更多技术指标
许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情
联系方式
- 项目维护者:[张礼涛]
- 邮箱:[445646258@qq.com]
- 项目链接:https://github.com/95ge/txquant
致谢
感谢所有为本项目做出贡献的开发者!
Metadata
Release files for txquant 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| txquant-0.1.0.tar.gz | 3.4 kB | Without provenance | Details for txquant-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| txquant-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for txquant-0.1.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / txquant-0.1.0.tar.gz
| Download URL | txquant-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e12a8aa180868612b8c1ee3c4a4792b7ce9eb36acf8b9b42f03e65b0969a8009
|
|
BLAKE2b-256 checksum How to use checksums |
9c6c532d64c9e2f7b117afd50134ea86dbff0a3141297601c845e5fa2a74a890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Release files / txquant-0.1.0-py3-none-any.whl
| Download URL | txquant-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
500c437d05613f266a37e11cb46dcd1d28e669949ef6a2083aea09984f0b6d41
|
|
BLAKE2b-256 checksum How to use checksums |
45ea5556e9113d141a6857fad777e98cb46560eef8c1bc99fce7ba0a67751c89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Security for txquant 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.