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/changes/trade-import-fix/design.md

565 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. 去重详情提示

  • save_to_db 新增 skipped_details 列表,记录每条被跳过的记录:{variety, date, time, price, type}
  • API 响应中包含此列表
  • 前端弹窗中展示被跳过的记录详情

2. 批量导入修复

  • 检查前端 FormData 传参方式
  • 确保后端 files 参数正确接收

3. 期权盈亏修复

  • 期权 close_pnl 改为使用 权利金 字段(带正负号:卖为正,买为负)
  • calc_daily_summary 中期权盈亏公式:pnl = amount - commissionamount 即权利金)