mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +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 {
|
if len(errIdx) > 0 {
|
||||||
time.Sleep(200 * time.Millisecond)
|
time.Sleep(200 * time.Millisecond)
|
||||||
|
|
||||||
createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...)
|
createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...)
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
err = multierr.Append(err, err2)
|
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))
|
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 {
|
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,
|
// before we re-play the orders,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user