mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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 {
|
} else {
|
||||||
for _, td := range trades {
|
for _, td := range trades {
|
||||||
log.Infof("processing trade: %s", td.String())
|
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