mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
xdepthmaker: call DebugSubmitOrders
This commit is contained in:
parent
23db7fac1e
commit
ae7d5e9dd8
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user