Skip to content

Commit

Permalink
liqmaker: fix stopEMA subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Oct 28, 2024
1 parent 4d4afee commit c3fec1c
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 c3fec1c

Please sign in to comment.