mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
grid2: fix log index number
This commit is contained in:
parent
d2d818a6bc
commit
bee7b593d2
|
@ -224,7 +224,7 @@ 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)
|
||||
|
|
|
@ -1248,7 +1248,7 @@ func (s *Strategy) recoverGridWithOpenOrders(ctx context.Context, historyService
|
|||
|
||||
s.logger.Infof("GRID RECOVER: found %d filled grid orders, will re-replay the order event in the following order:", len(filledOrders))
|
||||
for i, o := range filledOrders {
|
||||
s.logger.Infof("%d) %s", i, o.String())
|
||||
s.logger.Infof("%d) %s", i+1, o.String())
|
||||
}
|
||||
|
||||
// before we re-play the orders,
|
||||
|
|
Loading…
Reference in New Issue
Block a user