xdepthmaker: call DebugSubmitOrders

This commit is contained in:
c9s 2024-11-16 01:32:32 +08:00
parent 23db7fac1e
commit ae7d5e9dd8
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -14,6 +14,7 @@ import (
"github.com/c9s/bbgo/pkg/bbgo" "github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/core" "github.com/c9s/bbgo/pkg/core"
"github.com/c9s/bbgo/pkg/dbg"
"github.com/c9s/bbgo/pkg/exchange/retry" "github.com/c9s/bbgo/pkg/exchange/retry"
"github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/metrics" "github.com/c9s/bbgo/pkg/metrics"
@ -1188,6 +1189,8 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) {
metrics.UpdateMakerOpenOrderMetrics(ID, s.InstanceID(), s.MakerExchange, s.Symbol, submitOrders) metrics.UpdateMakerOpenOrderMetrics(ID, s.InstanceID(), s.MakerExchange, s.Symbol, submitOrders)
} }
dbg.DebugSubmitOrders(s.logger, submitOrders)
_, err = s.MakerOrderExecutor.SubmitOrders(ctx, submitOrders...) _, err = s.MakerOrderExecutor.SubmitOrders(ctx, submitOrders...)
if err != nil { if err != nil {
s.logger.WithError(err).Errorf("submit order error: %s", err.Error()) s.logger.WithError(err).Errorf("submit order error: %s", err.Error())