You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buffer_platform/openspec/archive/trade-import-fix/proposal.md

17 lines
711 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 交易复盘导入修复
## 动机
1. 去重过滤时只提示跳过了多少条,未说明具体是哪些记录被过滤
2. 批量导入功能失败
3. 期权交易盈亏计算错误close_pnl 硬编码为 0应使用权利金计算盈亏
## 目标
1. 去重时记录被过滤记录的详细信息(品种、日期、时间、价格),并在前端展示
2. 修复批量导入失败问题
3. 修复期权盈亏计算使用权利金amount作为期权盈亏来源
## 范围
- `app/services/trade_parser.py` — 去重详情收集、期权盈亏修复
- `app/api/trade_review.py` — 返回去重详情、批量导入修复
- `app/static/futures_analysis.js` — 前端展示去重详情