mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +00:00
Merge pull request #1797 from c9s/c9s/liqmaker/metrics-and-tests
FIX: [liqmaker] fix stopEMA subscription
This commit is contained in:
commit
39d3dc0aac
|
@ -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