mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
bbgo: sleep 200ms before we retry submiting the order
This commit is contained in:
parent
bc98fe3bcc
commit
d2d818a6bc
|
@ -223,6 +223,8 @@ func (e *GeneralOrderExecutor) SubmitOrders(ctx context.Context, submitOrders ..
|
|||
}
|
||||
|
||||
if len(errIdx) > 0 {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
||||
createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...)
|
||||
if err2 != nil {
|
||||
err = multierr.Append(err, err2)
|
||||
|
|
Loading…
Reference in New Issue
Block a user