xmaker: fix profit stats notification

This commit is contained in:
c9s 2022-09-20 15:09:22 +08:00
parent de1b0bccfc
commit 247a22c4fe
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -840,7 +840,7 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
s.updateQuote(ctx, orderExecutionRouter)
case <-reportTicker.C:
bbgo.Notify(&s.ProfitStats)
bbgo.Notify(s.ProfitStats)
case <-tradeScanTicker.C:
log.Infof("scanning trades from %s ago...", tradeScanInterval)