mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
xmaker: fix trade checking
This commit is contained in:
parent
d962dbe542
commit
9a68cfd288
|
@ -824,8 +824,10 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
|
|||
// process pending trades
|
||||
if s.tradeStore.Num() > 0 {
|
||||
for _, trade := range s.tradeStore.Trades() {
|
||||
if s.orderStore.Exists(trade.OrderID) {
|
||||
s.processTrade(trade)
|
||||
}
|
||||
}
|
||||
s.tradeStore.Clear()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user