mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
xgap: subscribe 1m kline
This commit is contained in:
parent
8f4ae1e15b
commit
f78a7d37a2
|
@ -135,6 +135,7 @@ func (s *Strategy) CrossSubscribe(sessions map[string]*bbgo.ExchangeSession) {
|
|||
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"})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user