Skip to content

Commit 33a6462

Browse files
committed
chore: bump version to 2.8.0
1 parent 8cc7e59 commit 33a6462

4 files changed

Lines changed: 37 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1-
# 更新日志
1+
# Changelog
22

3-
本项目的所有重要变更都将记录在此文件中。
3+
All notable changes to this project will be documented in this file.
44

5-
格式基于 [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6-
项目遵循 [语义化版本](https://semver.org/spec/v2.0.0.html) 规范。
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [2.8.0] - 2026-03-15
9+
10+
### ✨ Added
11+
12+
- **Multi-market support** — New `market` config (`CN`/`US`); `MarketProfile` auto-adapts trading rules (T+1, price limits, lot size, commissions, default benchmark)
13+
- **i18n** — Backtest output in zh/en/de via `locale` config
14+
- **Trade log**`StatsCollector` + `PtradeAPI` integration, records every trade
15+
- **Optimization mode**`optimization_mode` skips strategy validation/data analysis/logging; shares date-index cache across trials
16+
17+
### 🔧 Improved
18+
19+
- **Optimizer refactor**`optimizer_framework.py` slimmed by ~400 lines
20+
- **Log format** — Backtest date prefix in log lines
21+
- **Benchmark default**`benchmark_code` defaults to empty string, auto-selects market default
22+
- **Data loading**`storage.py` ensures date columns are datetime, compatible with string/int parquet formats
23+
24+
### 📦 Upgrade
25+
26+
```bash
27+
pip install --upgrade simtradelab==2.8.0
28+
```
29+
30+
---
731

832
## [2.7.0] - 2026-03-10
933

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ English | [中文](README.zh-CN.md)
77
[![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://www.python.org/)
88
[![License](https://img.shields.io/badge/License-AGPL--3.0-blue.svg)](LICENSE)
99
[![License: Commercial](https://img.shields.io/badge/License-Commercial--Available-red)](licenses/LICENSE-COMMERCIAL.md)
10-
[![Version](https://img.shields.io/badge/Version-2.7.0-orange.svg)](#)
10+
[![Version](https://img.shields.io/badge/Version-2.8.0-orange.svg)](#)
1111
[![PyPI](https://img.shields.io/pypi/v/simtradelab.svg)](https://pypi.org/project/simtradelab/)
1212
[![PyPI - Downloads](https://img.shields.io/pypi/dm/simtradelab.svg)](https://pypi.org/project/simtradelab/)
1313

@@ -34,7 +34,8 @@ English | [中文](README.zh-CN.md)
3434
- 🧠 **Smart data loading** — AST analysis of strategy code, loads only required data
3535
- 🔧 **Lifecycle control** — 7 lifecycle phases, strict simulation of PTrade's API restrictions
3636
- 📊 **Full stats reporting** — returns, risk metrics (Sharpe/Sortino/Calmar), trade details, FIFO dividend tax, CSV export
37-
- 🔌 **T+0 / T+1 modes** — configurable trading restrictions for A-shares, ETFs, and US stocks
37+
- 🔌 **Multi-market** — Built-in CN (A-shares) and US market profiles with automatic trading rule adaptation
38+
- 🌐 **i18n** — Backtest output in Chinese, English, or German
3839

3940
---
4041

@@ -67,7 +68,7 @@ pip install simtradelab[indicators]
6768
pip install simtradelab[optimizer]
6869
```
6970

70-
**Data:** Use [SimTradeData](https://github.com/kay-ou/SimTradeData) to download China A-share historical data.
71+
**Data:** Use [SimTradeData](https://github.com/kay-ou/SimTradeData) to download China A-share and US stock historical data.
7172

7273
**Run a backtest:**
7374

README.zh-CN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Python](https://img.shields.io/badge/Python-3.9+-blue.svg)](https://www.python.org/)
88
[![License](https://img.shields.io/badge/License-AGPL--3.0-blue.svg)](LICENSE)
99
[![License: Commercial](https://img.shields.io/badge/License-Commercial--Available-red)](licenses/LICENSE-COMMERCIAL.md)
10-
[![Version](https://img.shields.io/badge/Version-2.7.0-orange.svg)](#)
10+
[![Version](https://img.shields.io/badge/Version-2.8.0-orange.svg)](#)
1111
[![PyPI](https://img.shields.io/pypi/v/simtradelab.svg)](https://pypi.org/project/simtradelab/)
1212
[![PyPI - Downloads](https://img.shields.io/pypi/dm/simtradelab.svg)](https://pypi.org/project/simtradelab/)
1313

@@ -34,7 +34,8 @@
3434
- 🧠 **智能数据加载** — AST静态分析策略代码,按需加载数据,节省内存
3535
- 🔧 **生命周期控制** — 7个生命周期阶段,严格模拟PTrade的API调用限制
3636
- 📊 **完整统计报告** — 收益、风险(夏普/索提诺/卡玛)、交易明细、FIFO分红税、CSV导出
37-
- 🔌 **T+0 / T+1 模式** — 可配置A股、ETF、美股交易限制
37+
- 🔌 **多市场支持** — 内置 A 股 / 美股市场配置,自动适配交易规则(T+1、涨跌停、手数、手续费)
38+
- 🌐 **国际化** — 回测输出支持中文/英文/德文
3839

3940
---
4041

@@ -67,7 +68,7 @@ pip install simtradelab[indicators]
6768
pip install simtradelab[optimizer]
6869
```
6970

70-
**数据获取:** 使用 [SimTradeData](https://github.com/kay-ou/SimTradeData) 获取A股历史数据
71+
**数据获取:** 使用 [SimTradeData](https://github.com/kay-ou/SimTradeData) 获取A股和美股历史数据
7172

7273
**运行回测:**
7374

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Poetry configuration
22
[tool.poetry]
33
name = "simtradelab"
4-
version = "2.7.0"
4+
version = "2.8.0"
55
description = "Lightweight quantitative backtesting framework with PTrade API simulation | 轻量级量化回测框架"
66
authors = ["kay <kayou@duck.com>"]
77
license = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)