fix(交易信号): 修复未追踪仓位时平均单价渲染为 %!f(<nil>) 的问题
- 本地无均价记录时回退使用上游 totalAvgPx - 跟单模板在无均价时不再输出平均单价行
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user