mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
liqmaker: fix stopEMA subscription
This commit is contained in:
parent
4d4afee6aa
commit
c3fec1cccd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user