Skip to content

Commit

Permalink
Update Version 3.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shinny-pack authored and shinny-mayanqiong committed Apr 23, 2024
1 parent b72cb7c commit b263bae
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions doc/version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 的主连合约和主力合约
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='tqsdk',
version="3.5.6",
version="3.5.7",
description='TianQin SDK',
author='TianQin',
author_email='[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion tqsdk/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.5.6'
__version__ = '3.5.7'
2 changes: 1 addition & 1 deletion tqsdk/data_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b263bae

Please sign in to comment.