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