mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
fix(ftx): rename to pollKLines()
This commit is contained in:
parent
239d55ce33
commit
a7a141c3ea
|
@ -127,7 +127,7 @@ func (s *Stream) Subscribe(channel types.Channel, symbol string, option types.Su
|
|||
|
||||
} else if channel == types.KLineChannel {
|
||||
// FTX does not support kline channel, do polling
|
||||
go s.subscribeKLine(symbol, option)
|
||||
go s.pollKLines(symbol, option)
|
||||
} else {
|
||||
panic("only support book/kline channel now")
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ func (s *Stream) handleChannelKlineMessage(ctx context.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func (s *Stream) subscribeKLine(symbol string, option types.SubscribeOptions) {
|
||||
func (s *Stream) pollKLines(symbol string, option types.SubscribeOptions) {
|
||||
interval := types.Interval(option.Interval)
|
||||
if !isIntervalSupportedInKLine(interval) {
|
||||
logger.Errorf("not supported kline interval %s", option.Interval)
|
||||
|
|
Loading…
Reference in New Issue
Block a user