From f76952f979e80e9774b8d1450a3259838ee69992 Mon Sep 17 00:00:00 2001 From: KeKe <45591222+1122455801@users.noreply.github.com> Date: Mon, 4 Nov 2019 09:56:13 +0800 Subject: [PATCH] Update bybit_gateway.py --- vnpy/gateway/bybit/bybit_gateway.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnpy/gateway/bybit/bybit_gateway.py b/vnpy/gateway/bybit/bybit_gateway.py index f15d0b6e..f50ebce2 100644 --- a/vnpy/gateway/bybit/bybit_gateway.py +++ b/vnpy/gateway/bybit/bybit_gateway.py @@ -547,6 +547,9 @@ class BybitRestApi(RestClient): ) buf.append(bar) + if not buf: + continue + history.extend(buf) begin = buf[0].datetime