Skip to content

Commit

Permalink
liqmaker: call dynamic.InitializeConfigMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 18, 2024
1 parent 834d6eb commit 19ace1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/strategy/liquiditymaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/dbg"
"github.com/c9s/bbgo/pkg/dynamic"
"github.com/c9s/bbgo/pkg/fixedpoint"
indicatorv2 "github.com/c9s/bbgo/pkg/indicator/v2"
"github.com/c9s/bbgo/pkg/strategy/common"
Expand Down Expand Up @@ -200,6 +201,11 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.
s.stopEMA = session.Indicators(s.Symbol).EMA(s.StopEMA.IntervalWindow)
}

instanceID := s.InstanceID()
if err := dynamic.InitializeConfigMetrics(ID, instanceID, s); err != nil {
return err
}

s.metricsLabels["exchange"] = session.ExchangeName.String()

s.orderGenerator = &LiquidityOrderGenerator{
Expand Down

0 comments on commit 19ace1f

Please sign in to comment.