mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
fix(ftx): get current kline candle in the beginning
This commit is contained in:
parent
ddcd0d3969
commit
2467d3fcf6
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user