Merge pull request #319 from tony1223/bug/318-ftx-pricealert

finetune ftx for #318
This commit is contained in:
Yo-An Lin 2021-12-08 19:40:53 +08:00 committed by GitHub
commit 5a87685def

View File

@ -141,7 +141,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)
} }
} }