fix(交易信号): 修复未追踪仓位时平均单价渲染为 %!f(<nil>) 的问题

- 本地无均价记录时回退使用上游 totalAvgPx
- 跟单模板在无均价时不再输出平均单价行
This commit is contained in:
2026-10-10 00:48:35 +08:00
parent 931130038b
commit 8e6a1332f0
5 changed files with 62 additions and 8 deletions
@@ -22,6 +22,7 @@ type Signal struct {
StopLossRatio *float64 `json:"stopLossRatio"`
PnL *float64 `json:"pnl"`
AccountBalance *float64 `json:"accountBalance"`
TotalAvgPx *float64 `json:"totalAvgPx"`
RawMessage string `json:"rawMessage"`
}