fix(ftx): get current kline candle in the beginning

This commit is contained in:
Jui-Nan Lin 2021-05-24 10:22:44 +08:00
parent ddcd0d3969
commit 2467d3fcf6

View File

@ -154,6 +154,9 @@ func (s *Stream) subscribeKLine(symbol string, option types.SubscribeOptions) {
return
}
// get current kline candle
s.km <- klineMessage{symbol: symbol, interval: interval}
ticker := time.NewTicker(interval.Duration())
defer ticker.Stop()