Skip to content

Commit

Permalink
Update Version 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shinny-pack authored and shinny-mayanqiong committed Apr 24, 2023
1 parent 48c48f6 commit 4393c9f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 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.4.0
Version: 3.4.1
Summary: TianQin SDK
Home-page: https://www.shinnytech.com/tqsdk
Author: TianQin
Expand Down
6 changes: 3 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@

# General information about the project.
project = u'TianQin Python SDK'
copyright = u'2018-2022, TianQin'
copyright = u'2018-2023, TianQin'
author = u'TianQin'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'3.4.0'
version = u'3.4.1'
# The full version, including alpha/beta/rc tags.
release = u'3.4.0'
release = u'3.4.1'

# 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.4.1 (2023/04/24)

* 修复: 回测时,部分情况下 expired 字段错误


3.4.0 (2023/04/13)

* 增加:支持国密连接,可以在 :py:meth:`~tqsdk.TqAccount` 构造时指定 sm 参数为 True 来启用.
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.4.0",
version="3.4.1",
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.4.0'
__version__ = '3.4.1'
4 changes: 2 additions & 2 deletions tqsdk/backtest/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def _send_snapshot(self):
"min_market_order_volume": quote["min_market_order_volume"],
"underlying_symbol": quote["underlying_symbol"],
"strike_price": quote["strike_price"],
"expired": quote.get('expire_datetime', float('nan')) <= self._trading_day_start, # expired 默认值就是 False
"expired": quote.get('expire_datetime', float('nan')) * 1000000000 <= self._trading_day_start, # expired 默认值就是 False
"trading_time": {"day": trading_time.get("day", []), "night": trading_time.get("night", [])},
"expire_datetime": quote.get("expire_datetime"),
"delivery_month": quote.get("delivery_month"),
Expand Down Expand Up @@ -321,7 +321,7 @@ async def _send_diff(self):
"quotes": self._stock_dividend._get_dividend(self._data.get('quotes'), self._trading_day)
})
self._diffs.append({
"quotes": {k: {'expired': v.get('expire_datetime', float('nan')) <= self._trading_day_start}
"quotes": {k: {'expired': v.get('expire_datetime', float('nan')) * 1000000000 <= self._trading_day_start}
for k, v in self._data.get('quotes').items()}
})

Expand Down

0 comments on commit 4393c9f

Please sign in to comment.