Administrator
5 days ago eb365b75c8388d1a30a6659f4692b802a3066097
refs
author Administrator <15274802129@163.com>
Friday, October 30, 2026 11:48 +0800
committer Administrator <15274802129@163.com>
Friday, October 30, 2026 17:49 +0800
commiteb365b75c8388d1a30a6659f4692b802a3066097
tree 9ca48e0393025cfad4ec06f26328b3870c067d67 tree | zip | gz
parent f6080a67720f6241564589bb5b074661d8157f0f view | diff
```
fix(grid): 修复止损订单张数统计和追单时序竞态问题

- 修改 GridElement 类添加止损订单ID到张数的映射关系存储
- 更新 addLongStopLossOrderId 和 addShortStopLossOrderId 方法支持张数参数
- 添加 getLongStopLossTotalSize 和 getShortStopLossTotalSize 方法计算总张数
- 修正止损触发时追单量计算,使用实际止损总张数避免时序竞态问题
- 更新文档注释说明止损张数参数的用途和含义
```
2 files modified
100 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java 28 ●●●●● diff | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/gateApi/GridElement.java 72 ●●●●● diff | view | raw | blame | history