mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
grid2: set max retries
This commit is contained in:
parent
0a3baea316
commit
a0a7b0ffdc
|
@ -1888,6 +1888,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.
|
||||||
bbgo.Sync(ctx, s)
|
bbgo.Sync(ctx, s)
|
||||||
})
|
})
|
||||||
orderExecutor.ActiveMakerOrders().OnFilled(s.newOrderUpdateHandler(ctx, session))
|
orderExecutor.ActiveMakerOrders().OnFilled(s.newOrderUpdateHandler(ctx, session))
|
||||||
|
orderExecutor.SetMaxRetries(5)
|
||||||
|
|
||||||
if s.logger != nil {
|
if s.logger != nil {
|
||||||
orderExecutor.SetLogger(s.logger)
|
orderExecutor.SetLogger(s.logger)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user