mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get current kline candle
|
||||||
|
s.km <- klineMessage{symbol: symbol, interval: interval}
|
||||||
|
|
||||||
ticker := time.NewTicker(interval.Duration())
|
ticker := time.NewTicker(interval.Duration())
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user