Skip to content

Commit 4393c9f

Browse files
shinny-packshinny-mayanqiong
authored andcommitted
Update Version 3.4.1
1 parent 48c48f6 commit 4393c9f

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: tqsdk
3-
Version: 3.4.0
3+
Version: 3.4.1
44
Summary: TianQin SDK
55
Home-page: https://www.shinnytech.com/tqsdk
66
Author: TianQin

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040

4141
# General information about the project.
4242
project = u'TianQin Python SDK'
43-
copyright = u'2018-2022, TianQin'
43+
copyright = u'2018-2023, TianQin'
4444
author = u'TianQin'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = u'3.4.0'
51+
version = u'3.4.1'
5252
# The full version, including alpha/beta/rc tags.
53-
release = u'3.4.0'
53+
release = u'3.4.1'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

doc/version.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
版本变更
44
=============================
5+
3.4.1 (2023/04/24)
6+
7+
* 修复: 回测时,部分情况下 expired 字段错误
8+
9+
510
3.4.0 (2023/04/13)
611

712
* 增加:支持国密连接,可以在 :py:meth:`~tqsdk.TqAccount` 构造时指定 sm 参数为 True 来启用.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name='tqsdk',
11-
version="3.4.0",
11+
version="3.4.1",
1212
description='TianQin SDK',
1313
author='TianQin',
1414
author_email='tianqincn@gmail.com',

tqsdk/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.4.0'
1+
__version__ = '3.4.1'

tqsdk/backtest/backtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def _send_snapshot(self):
268268
"min_market_order_volume": quote["min_market_order_volume"],
269269
"underlying_symbol": quote["underlying_symbol"],
270270
"strike_price": quote["strike_price"],
271-
"expired": quote.get('expire_datetime', float('nan')) <= self._trading_day_start, # expired 默认值就是 False
271+
"expired": quote.get('expire_datetime', float('nan')) * 1000000000 <= self._trading_day_start, # expired 默认值就是 False
272272
"trading_time": {"day": trading_time.get("day", []), "night": trading_time.get("night", [])},
273273
"expire_datetime": quote.get("expire_datetime"),
274274
"delivery_month": quote.get("delivery_month"),
@@ -321,7 +321,7 @@ async def _send_diff(self):
321321
"quotes": self._stock_dividend._get_dividend(self._data.get('quotes'), self._trading_day)
322322
})
323323
self._diffs.append({
324-
"quotes": {k: {'expired': v.get('expire_datetime', float('nan')) <= self._trading_day_start}
324+
"quotes": {k: {'expired': v.get('expire_datetime', float('nan')) * 1000000000 <= self._trading_day_start}
325325
for k, v in self._data.get('quotes').items()}
326326
})
327327

0 commit comments

Comments
 (0)