mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge branch 'fix/grid2/quote-quantity'
This commit is contained in:
commit
039fb4f4b7
|
@ -891,14 +891,14 @@ func (s *Strategy) openGrid(ctx context.Context, session *bbgo.ExchangeSession)
|
|||
|
||||
s.debugGridOrders(submitOrders, lastPrice)
|
||||
|
||||
// try to always emit grid ready
|
||||
defer s.EmitGridReady()
|
||||
|
||||
createdOrders, err2 := s.orderExecutor.SubmitOrders(ctx, submitOrders...)
|
||||
if err2 != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// try to always emit grid ready
|
||||
defer s.EmitGridReady()
|
||||
|
||||
// update the number of orders to metrics
|
||||
baseLabels := s.newPrometheusLabels()
|
||||
metricsGridNumOfOrders.With(baseLabels).Set(float64(len(createdOrders)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user