bbgo: sleep 200ms before we retry submiting the order

This commit is contained in:
c9s 2023-02-22 00:54:12 +08:00
parent bc98fe3bcc
commit d2d818a6bc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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)