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,7 +824,9 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
|
||||||
// process pending trades
|
// process pending trades
|
||||||
if s.tradeStore.Num() > 0 {
|
if s.tradeStore.Num() > 0 {
|
||||||
for _, trade := range s.tradeStore.Trades() {
|
for _, trade := range s.tradeStore.Trades() {
|
||||||
s.processTrade(trade)
|
if s.orderStore.Exists(trade.OrderID) {
|
||||||
|
s.processTrade(trade)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
s.tradeStore.Clear()
|
s.tradeStore.Clear()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user