Fix trades API 500 by supporting sqlite Row in hold timing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-27 15:41:27 +08:00
parent 14c6ba51a8
commit 3d7c453bd1
3 changed files with 56 additions and 13 deletions
+9
View File
@@ -5,6 +5,15 @@
---
## 2026-07-27 — 修复交易记录 500(记录未丢)
### 变更
1. `/api/trades/groups``sqlite3.Row``.get` 抛错导致「Internal Server Error / 暂无成交组」假象。
2. 持仓周期计算改为兼容 Row;库内成交组仍在。
---
## 2026-07-27 — 交易记录:开仓/平仓时间与持仓周期
### 变更