mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix orderId-based query for binance
This commit is contained in:
parent
7fab2e24de
commit
8693bbbd24
|
@ -91,7 +91,7 @@ func (e ExchangeBatchProcessor) BatchQueryClosedOrders(ctx context.Context, symb
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(orders) == 0 {
|
if len(orders) == 0 || (len(orders) == 1 && orders[0].OrderID == lastOrderID) {
|
||||||
startTime = limitedEndTime
|
startTime = limitedEndTime
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,7 @@ func (e ExchangeBatchProcessor) BatchQueryClosedOrders(ctx context.Context, symb
|
||||||
c <- o
|
c <- o
|
||||||
startTime = o.CreationTime
|
startTime = o.CreationTime
|
||||||
lastOrderID = o.OrderID
|
lastOrderID = o.OrderID
|
||||||
|
orderIDs[o.OrderID] = struct{}{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user