mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
xmaker: when recover the trade, notify
This commit is contained in:
parent
7f967de210
commit
f4ebae17bb
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user