mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: update metrics before we re-play orders
This commit is contained in:
parent
f26568e213
commit
db119a2218
|
@ -1413,9 +1413,10 @@ func (s *Strategy) recoverGridWithOpenOrders(ctx context.Context, historyService
|
|||
// before we re-play the orders,
|
||||
// we need to add these open orders to the active order book
|
||||
s.addOrdersToActiveOrderBook(gridOrders)
|
||||
|
||||
s.setGrid(grid)
|
||||
s.EmitGridReady()
|
||||
s.updateGridNumOfOrdersMetrics()
|
||||
s.updateOpenOrderPricesMetrics(s.orderExecutor.ActiveMakerOrders().Orders())
|
||||
|
||||
for i := range filledOrders {
|
||||
// avoid using the iterator
|
||||
|
|
Loading…
Reference in New Issue
Block a user