mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
finetune ftx for #318
This commit is contained in:
parent
b71d0f5b6e
commit
3dff1acd79
|
@ -141,7 +141,9 @@ func (s *Stream) pollKLines(ctx context.Context) {
|
|||
|
||||
if len(klines) > 0 {
|
||||
// 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