Skip to content

Commit

Permalink
Merge pull request #1797 from c9s/c9s/liqmaker/metrics-and-tests
Browse files Browse the repository at this point in the history
FIX: [liqmaker] fix stopEMA subscription
  • Loading branch information
c9s authored Oct 28, 2024
2 parents 0c1f8f8 + c3fec1c commit 39d3dc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/strategy/liquiditymaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func (s *Strategy) InstanceID() string {
func (s *Strategy) Subscribe(session *bbgo.ExchangeSession) {
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{Interval: s.AdjustmentUpdateInterval})
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{Interval: s.LiquidityUpdateInterval})

if s.StopEMA != nil && s.StopEMA.Interval != "" {
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{Interval: s.StopEMA.Interval})
}
}

func (s *Strategy) Defaults() error {
Expand Down

0 comments on commit 39d3dc0

Please sign in to comment.