From 9945c6aeb7b3acfa2d81f48cd2c49c0feee29296 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 12 Nov 2019 14:17:49 +0800 Subject: [PATCH] Revert "[Fix] query_history" --- vnpy/gateway/bybit/bybit_gateway.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/vnpy/gateway/bybit/bybit_gateway.py b/vnpy/gateway/bybit/bybit_gateway.py index a0d096fc..78461aee 100644 --- a/vnpy/gateway/bybit/bybit_gateway.py +++ b/vnpy/gateway/bybit/bybit_gateway.py @@ -550,9 +550,6 @@ class BybitRestApi(RestClient): ) buf.append(bar) - if not buf: - continue - history.extend(buf) begin = buf[0].datetime