xgap: subscribe 1m kline

This commit is contained in:
c9s 2021-12-28 02:14:49 +08:00
parent 8f4ae1e15b
commit f78a7d37a2

View File

@ -135,6 +135,7 @@ func (s *Strategy) CrossSubscribe(sessions map[string]*bbgo.ExchangeSession) {
panic(fmt.Errorf("trading session %s is not defined", s.TradingExchange)) panic(fmt.Errorf("trading session %s is not defined", s.TradingExchange))
} }
tradingSession.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{Interval: "1m"})
tradingSession.Subscribe(types.BookChannel, s.Symbol, types.SubscribeOptions{Interval: "1m"}) tradingSession.Subscribe(types.BookChannel, s.Symbol, types.SubscribeOptions{Interval: "1m"})
} }