diff --git a/PKG-INFO b/PKG-INFO index e8bf6532..ec3a30b2 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqsdk -Version: 3.5.6 +Version: 3.5.7 Summary: TianQin SDK Home-page: https://www.shinnytech.com/tqsdk Author: TianQin diff --git a/doc/conf.py b/doc/conf.py index 82c82d90..fcf079fe 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -48,9 +48,9 @@ # built documents. # # The short X.Y version. -version = u'3.5.6' +version = u'3.5.7' # The full version, including alpha/beta/rc tags. -release = u'3.5.6' +release = u'3.5.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/doc/version.rst b/doc/version.rst index fab24a34..1ae89324 100644 --- a/doc/version.rst +++ b/doc/version.rst @@ -2,6 +2,11 @@ 版本变更 ============================= +3.5.7 (2024/04/23) + +* 修复::py:meth:`~tqsdk.TqApi.get_kline_data_series`、:py:meth:`~tqsdk.TqApi.get_tick_data_series` 接口在指定时间段没有数据时报错 + + 3.5.6 (2024/04/11) * 修复::py:meth:`~tqsdk.TqApi.query_quotes` 函数无法查询广州期货交易所 GFEX 的主连合约和主力合约 diff --git a/setup.py b/setup.py index ce414532..94ea44b2 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='tqsdk', - version="3.5.6", + version="3.5.7", description='TianQin SDK', author='TianQin', author_email='tianqincn@gmail.com', diff --git a/tqsdk/__version__.py b/tqsdk/__version__.py index f59ba749..aa89269e 100644 --- a/tqsdk/__version__.py +++ b/tqsdk/__version__.py @@ -1 +1 @@ -__version__ = '3.5.6' +__version__ = '3.5.7' diff --git a/tqsdk/data_series.py b/tqsdk/data_series.py index 255108a0..3761e89b 100644 --- a/tqsdk/data_series.py +++ b/tqsdk/data_series.py @@ -102,7 +102,7 @@ async def _run(self): DataSeries._assert_rangeset_asce_sorted(rangeset_id) DataSeries._assert_rangeset_asce_sorted(rangeset_dt) - assert len(rangeset_id) == len(rangeset_dt) > 0 + assert len(rangeset_id) == len(rangeset_dt) # rangeset_id 和 rangeset_dt 的长度应该相等, 且一一对应,有可能长度都为 0 ,即没有下载任何数据 # 查找用户请求时间段与已有数据时间段的交集 target_rangeset_dt = _rangeset_intersection([(self._start_dt_nano, self._end_dt_nano)], rangeset_dt)