mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
ftx: update kline event handling for #318
This commit is contained in:
parent
1aca9f75a0
commit
6915a0e573
|
@ -170,7 +170,9 @@ func (s *Stream) pollKLines(ctx context.Context) {
|
||||||
|
|
||||||
if len(klines) > 0 {
|
if len(klines) > 0 {
|
||||||
// handle mutiple klines, get the latest one
|
// handle mutiple klines, get the latest one
|
||||||
s.EmitKLineClosed(klines[len(klines)-1])
|
kline := klines[len(klines)-1]
|
||||||
|
s.EmitKLine(kline)
|
||||||
|
s.EmitKLineClosed(kline)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user