Skip to content

Commit 648d1b5

Browse files
shinny-packshinny-mayanqiong
authored andcommitted
Update Version 3.4.9
1 parent 8470165 commit 648d1b5

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
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.8
3+
Version: 3.4.9
44
Summary: TianQin SDK
55
Home-page: https://www.shinnytech.com/tqsdk
66
Author: TianQin

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = u'3.4.8'
51+
version = u'3.4.9'
5252
# The full version, including alpha/beta/rc tags.
53-
release = u'3.4.8'
53+
release = u'3.4.9'
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.9 (2023/09/15)
6+
7+
* 修复:回测时 :py:class:`~tqsdk.TqSim` 可能出现 volume_short_today 为负数的问题
8+
9+
510
3.4.8 (2023/09/07)
611

712
* 修复:修正多个 :py:class:`~tqsdk.TqKq` 快期模拟和辅模拟账户 account_key 重复的问题

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.8",
11+
version="3.4.9",
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.8'
1+
__version__ = '3.4.9'

tqsdk/tradeable/sim/trade_future.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _check_insert_order(self, order, symbol, position, quote, underlying_quote=N
184184
if order["status"] == "ALIVE" and order["offset"].startswith('CLOSE'):
185185
if order["exchange_id"] in ["SHFE", "INE"]:
186186
if order["offset"] == "CLOSETODAY":
187-
if order["direction"] == "BUY" and position["volume_short_today"] - position["volume_long_frozen_today"] < order["volume_orign"]:
187+
if order["direction"] == "BUY" and position["volume_short_today"] - position["volume_short_frozen_today"] < order["volume_orign"]:
188188
order["last_msg"] = "平今仓手数不足"
189189
elif order["direction"] == "SELL" and position["volume_long_today"] - position["volume_long_frozen_today"] < order["volume_orign"]:
190190
order["last_msg"] = "平今仓手数不足"

0 commit comments

Comments
 (0)