mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
grid2: add comment to the sync call
This commit is contained in:
parent
42840cd519
commit
b2bbf2d6ca
|
@ -759,6 +759,8 @@ func (s *Strategy) newTriggerPriceHandler(ctx context.Context, session *bbgo.Exc
|
|||
func (s *Strategy) newOrderUpdateHandler(ctx context.Context, session *bbgo.ExchangeSession) func(o types.Order) {
|
||||
return func(o types.Order) {
|
||||
s.handleOrderFilled(o)
|
||||
|
||||
// sync the profits to redis
|
||||
bbgo.Sync(ctx, s)
|
||||
|
||||
s.updateGridNumOfOrdersMetrics()
|
||||
|
|
Loading…
Reference in New Issue
Block a user