Skip to content

Commit

Permalink
Update Version 3.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
shinny-pack authored and shinny-mayanqiong committed Sep 22, 2023
1 parent 8470165 commit 648d1b5
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.4.8
Version: 3.4.9
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.4.8'
version = u'3.4.9'
# The full version, including alpha/beta/rc tags.
release = u'3.4.8'
release = u'3.4.9'

# 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.9 (2023/09/15)

* 修复:回测时 :py:class:`~tqsdk.TqSim` 可能出现 volume_short_today 为负数的问题


3.4.8 (2023/09/07)

* 修复:修正多个 :py:class:`~tqsdk.TqKq` 快期模拟和辅模拟账户 account_key 重复的问题
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.8",
version="3.4.9",
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.8'
__version__ = '3.4.9'
2 changes: 1 addition & 1 deletion tqsdk/tradeable/sim/trade_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _check_insert_order(self, order, symbol, position, quote, underlying_quote=N
if order["status"] == "ALIVE" and order["offset"].startswith('CLOSE'):
if order["exchange_id"] in ["SHFE", "INE"]:
if order["offset"] == "CLOSETODAY":
if order["direction"] == "BUY" and position["volume_short_today"] - position["volume_long_frozen_today"] < order["volume_orign"]:
if order["direction"] == "BUY" and position["volume_short_today"] - position["volume_short_frozen_today"] < order["volume_orign"]:
order["last_msg"] = "平今仓手数不足"
elif order["direction"] == "SELL" and position["volume_long_today"] - position["volume_long_frozen_today"] < order["volume_orign"]:
order["last_msg"] = "平今仓手数不足"
Expand Down

0 comments on commit 648d1b5

Please sign in to comment.