xmaker: when recover the trade, notify

This commit is contained in:
c9s 2022-01-07 13:13:22 +08:00
parent 7f967de210
commit f4ebae17bb

View File

@ -832,7 +832,9 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
} else {
for _, td := range trades {
log.Infof("processing trade: %s", td.String())
s.tradeCollector.ProcessTrade(td)
if s.tradeCollector.ProcessTrade(td) {
s.Notifiability.Notify("recovered trade", td)
}
}
}