File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55格式基于 [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66项目遵循 [ 语义化版本] ( https://semver.org/spec/v2.0.0.html ) 规范。
77
8+ ## [ 2.2.1] - 2026-02-09
9+
10+ ### 🐛 Bug 修复
11+
12+ - ** 买入成本含佣金** - ` cost_basis ` 现在包含佣金,与 PTrade 实际行为对齐
13+ - ** 除权事件处理修复** - 使用 ` date ` 列匹配替代索引查找,除权时同步调整 ` cost_basis `
14+ - ** 空数据快速报错** - ` StockData ` 数据为空时抛出明确 ` ValueError `
15+ - ** 日期类型修正** - 回测循环中确保 ` current_date ` 为 ` pd.Timestamp ` ,避免 ` datetime.date ` 无法 ` replace ` 时间分量
16+
17+ ### 🔧 改进
18+
19+ - ** 路径处理重构** - 使用 ` Path ` 对象替代字符串拼接,跨平台兼容
20+ - ** 项目根目录查找优化** - 新增 CWD 优先检测,支持 ` manifest.json ` 判定
21+ - ** 图表 x 轴自适应** - 根据回测时长自动选择年/季/月刻度间隔
22+ - ** 控制台编码修正** - 使用 ` reconfigure ` 确保 UTF-8 编码和实时输出
23+
24+ ### 📦 升级指南
25+
26+ 从 v2.2.0 升级:
27+
28+ ``` bash
29+ pip install --upgrade simtradelab==2.2.1
30+ ```
31+
32+ ** 兼容性:** ✅ 向后兼容,无 breaking change。
33+
34+ ---
35+
836## [ 2.2.0] - 2026-02-07
937
1038### ✨ 新增功能
Original file line number Diff line number Diff line change 55[ ![ Python] ( https://img.shields.io/badge/Python-3.9+-blue.svg )] ( https://www.python.org/ )
66[ ![ License] ( https://img.shields.io/badge/License-AGPL--3.0-blue.svg )] ( LICENSE )
77[ ![ License: Commercial] ( https://img.shields.io/badge/License-Commercial--Available-red )] ( licenses/LICENSE-COMMERCIAL.md )
8- [ ![ Version] ( https://img.shields.io/badge/Version-2.2.0 -orange.svg )] ( # )
8+ [ ![ Version] ( https://img.shields.io/badge/Version-2.2.1 -orange.svg )] ( # )
99[ ![ PyPI] ( https://img.shields.io/pypi/v/simtradelab.svg )] ( https://pypi.org/project/simtradelab/ )
1010[ ![ PyPI - Downloads] ( https://img.shields.io/pypi/dm/simtradelab.svg )] ( https://pypi.org/project/simtradelab/ )
1111
@@ -27,7 +27,7 @@ SimTradeLab(深测Lab) 是一个由社区独立开发的开源策略回测
2727- 📊 ** 完整统计报告** - 收益、风险、交易明细、持仓批次、FIFO分红税
2828- 🔌 ** 模块化设计** - 清晰的代码结构,易于扩展和定制
2929
30- ** 当前版本:** v2.2.0 | ** 开发状态:** Beta - 核心功能完善,正在策略实战中持续优化
30+ ** 当前版本:** v2.2.1 | ** 开发状态:** Beta - 核心功能完善,正在策略实战中持续优化
3131
3232---
3333
Original file line number Diff line number Diff line change 11# Poetry configuration
22[tool .poetry ]
33name = " simtradelab"
4- version = " 2.2.0 "
4+ version = " 2.2.1 "
55description = " 开源策略回测框架,灵感来自PTrade的事件驱动模型,提供轻量、清晰、可插拔的策略验证环境"
66authors = [" kay <kayou@duck.com>" ]
77license = " AGPL-3.0-or-later"
You can’t perform that action at this time.
0 commit comments