mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fi: restore parameter when update active orde book
This commit is contained in:
parent
3a98660e0c
commit
9f50e256c8
|
@ -268,6 +268,10 @@ func (b *ActiveOrderBook) GracefulCancel(ctx context.Context, ex types.Exchange,
|
|||
}
|
||||
|
||||
func (b *ActiveOrderBook) orderUpdateHandler(order types.Order) {
|
||||
if oldOrder, ok := b.Get(order.OrderID); ok {
|
||||
order.Tag = oldOrder.Tag
|
||||
order.GroupID = oldOrder.GroupID
|
||||
}
|
||||
b.Update(order)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user